diff options
| author | Runitai Linden <davep@lindenlab.com> | 2020-03-13 16:39:58 -0500 | 
|---|---|---|
| committer | Runitai Linden <davep@lindenlab.com> | 2020-03-13 16:39:58 -0500 | 
| commit | 5f0303eea5a30c914b61d5de6ade3697e551f9c6 (patch) | |
| tree | 3fcb8f298043d17347ad430873c6e2d29aa0da07 /indra/newview/app_settings/shaders | |
| parent | 4034d57bb8ffed4891c5517c94fd4ccb10a41160 (diff) | |
SL-12005 Fix for projectors getting brighter when switching to single light shader.
Diffstat (limited to 'indra/newview/app_settings/shaders')
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl index 2216afe609..694b19cdfb 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl @@ -177,9 +177,8 @@ void main()  	float da = dot(norm, lv);  	vec3 diff_tex = texture2DRect(diffuseRect, frag.xy).rgb; -    // SL-12005 Projector light pops as we get closer, more objectionable than being in wrong color space. -    //          We can't switch to linear here unless we do it everywhere -    //diff_tex.rgb = srgb_to_linear(diff_tex.rgb); +	//light shaders output linear and are gamma corrected later in postDeferredGammaCorrectF.glsl +    diff_tex.rgb = srgb_to_linear(diff_tex.rgb);  	vec4 spec = texture2DRect(specularRect, frag.xy); @@ -274,6 +273,7 @@ void main()  	}  #endif +	//col.r = 1.0;  	frag_color.rgb = col;	  	frag_color.a = 0.0;  } | 
