Skip to content
Snippets Groups Projects
Commit 223d9d14 authored by David Parks's avatar David Parks
Browse files

Merged in davep/DRTVWR-440 (pull request #36)

SL-12005 Fix for projectors getting brighter when switching to single light shader.
parents 61697e8e 5f0303ee
No related branches found
No related tags found
No related merge requests found
...@@ -177,9 +177,8 @@ void main() ...@@ -177,9 +177,8 @@ void main()
float da = dot(norm, lv); float da = dot(norm, lv);
vec3 diff_tex = texture2DRect(diffuseRect, frag.xy).rgb; 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. //light shaders output linear and are gamma corrected later in postDeferredGammaCorrectF.glsl
// We can't switch to linear here unless we do it everywhere diff_tex.rgb = srgb_to_linear(diff_tex.rgb);
//diff_tex.rgb = srgb_to_linear(diff_tex.rgb);
vec4 spec = texture2DRect(specularRect, frag.xy); vec4 spec = texture2DRect(specularRect, frag.xy);
...@@ -274,6 +273,7 @@ void main() ...@@ -274,6 +273,7 @@ void main()
} }
#endif #endif
//col.r = 1.0;
frag_color.rgb = col; frag_color.rgb = col;
frag_color.a = 0.0; frag_color.a = 0.0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment