diff options
author | Graham Linden <graham@lindenlab.com> | 2019-03-07 15:09:34 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-03-07 15:09:34 -0800 |
commit | 53f3755a4629206754a5695de233d88062a54d3d (patch) | |
tree | 2d82c2a20ae4a6e19686748b79db7610759ffb3e /indra/newview/app_settings/shaders/class2/deferred | |
parent | dc4b34966ae6830a06bf266da6f600b32da8cfbd (diff) |
Fix tabs.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index d220bda332..484c0cae3e 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -137,8 +137,8 @@ void main() if (spec.a > 0.0) // specular reflection { // the old infinite-sky shiny reflection - float sa = dot(refnormpersp, sun_dir.xyz); - vec3 dumbshiny = sunlit*scol_ambocc.r*(texture2D(lightFunc, vec2(sa, spec.a)).r); + float sa = dot(refnormpersp, light_dir.xyz); + vec3 dumbshiny = sunlit*scol*(texture2D(lightFunc, vec2(sa, spec.a)).r); // add the two types of shiny together vec3 spec_contrib = dumbshiny * spec.rgb; |