diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-28 19:14:00 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-28 19:14:00 -0500 |
commit | 2e499bcc40871b6a68700203cc83fe7d81c79c24 (patch) | |
tree | 5204d535fb875bc65f2278aa1be19ad1da54fd73 /indra/llrender/llrender.cpp | |
parent | 2f082bb4ee433cba857499559dbfb30886fd0fb4 (diff) |
SL-18190 Prune srgb_to_linear from atmosphericsFuncs.glsl
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 6e659641fe..c7eb4613c1 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -979,6 +979,10 @@ void LLRender::syncLightState() shader->uniform4fv(LLShaderMgr::AMBIENT, 1, mAmbientLightColor.mV); shader->uniform4fv(LLShaderMgr::SUNLIGHT_COLOR, 1, diffuse[0].mV); shader->uniform4fv(LLShaderMgr::MOONLIGHT_COLOR, 1, diffuse_b[0].mV); + + shader->uniform3fv(LLShaderMgr::AMBIENT_LINEAR, 1, linearColor3(mAmbientLightColor).mV); + shader->uniform3fv(LLShaderMgr::SUNLIGHT_LINEAR, 1, linearColor3(diffuse[0]).mV); + shader->uniform3fv(LLShaderMgr::MOONLIGHT_LINEAR, 1, linearColor3(diffuse_b[0]).mV); } } |