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

SH-1427 Fix for sunlight color getting clobbered for non-deferred atmospheric shaders.

parent 108cdf58
No related branches found
No related tags found
No related merge requests found
......@@ -974,7 +974,7 @@ void LLShaderMgr::initAttribsAndUniforms()
mReservedUniforms.push_back("cloude_noise_texture");
mReservedUniforms.push_back("fullbright");
mReservedUniforms.push_back("lightnorm");
mReservedUniforms.push_back("sunlight_color");
mReservedUniforms.push_back("sunlight_color_copy");
mReservedUniforms.push_back("ambient");
mReservedUniforms.push_back("blue_horizon");
mReservedUniforms.push_back("blue_density");
......
......@@ -23,7 +23,7 @@
* $/LicenseInfo$
*/
uniform vec4 sunlight_color;
uniform vec4 sunlight_color_copy;
uniform vec4 light_ambient;
vec3 atmosAmbient(vec3 light)
......@@ -33,7 +33,7 @@ vec3 atmosAmbient(vec3 light)
vec3 atmosAffectDirectionalLight(float lightIntensity)
{
return sunlight_color.rgb * lightIntensity;
return sunlight_color_copy.rgb * lightIntensity;
}
vec3 atmosGetDiffuseSunlightColor()
......
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