From: curt Date: Fri, 21 Jul 2006 15:48:57 +0000 (+0000) Subject: Small tweaks to point lighting configuration to better control the appearance X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae62896f9f78820984906c03bb14ce27ed5d2cdd;p=flightgear.git Small tweaks to point lighting configuration to better control the appearance of approach rabbits. --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 563b6cb1f..9c46e832c 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -37,14 +37,15 @@ #include #include +#include +#include +#include +#include +#include #include #include -#include #include -#include #include -#include -#include #ifdef FG_JPEG_SERVER #include #endif @@ -235,7 +236,10 @@ FGRenderer::update( bool refresh_camera_settings ) { bool skyblend = fgGetBool("/sim/rendering/skyblend"); bool use_point_sprites = fgGetBool("/sim/rendering/point-sprites"); bool enhanced_lighting = fgGetBool("/sim/rendering/enhanced-lighting"); - bool distance_attenuation = fgGetBool("/sim/rendering/distance-attenuation"); + bool distance_attenuation + = fgGetBool("/sim/rendering/distance-attenuation"); + sgConfigureDirectionalLights( use_point_sprites, enhanced_lighting, + distance_attenuation ); bool volumetric_clouds = sgEnviro.get_clouds_enable_state(); #ifdef FG_ENABLE_MULTIPASS_CLOUDS bool multi_pass_clouds = fgGetBool("/sim/rendering/multi-pass-clouds") && @@ -603,7 +607,7 @@ FGRenderer::update( bool refresh_camera_settings ) { float quadratic[3] = {1.0, 0.001, 0.0000001}; // makes the points fade as they move away glPointParameterfvPtr(GL_DISTANCE_ATTENUATION_EXT, quadratic); - glPointParameterfPtr(GL_POINT_SIZE_MIN_EXT, 1.0); + // glPointParameterfPtr(GL_POINT_SIZE_MIN_EXT, 1.0); } glPointSize(4.0);