diff options
author | Graham Linden <graham@lindenlab.com> | 2013-09-20 16:44:39 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-09-20 16:44:39 -0700 |
commit | 2a03e8f9fb24bb68b79e34bcfa9a45d3e377b0b8 (patch) | |
tree | b6d325cb77de72da605fc4fc032cf4970126ee14 /indra/newview/app_settings/shaders/class1/objects/previewV.glsl | |
parent | 8aadd9d27025e6ed8e50e88ec9548d48e48095c8 (diff) |
MAINT-3172 fix rendering regressions from release mergedown
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/objects/previewV.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/objects/previewV.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/objects/previewV.glsl b/indra/newview/app_settings/shaders/class1/objects/previewV.glsl index c325a236d7..7f3f84398b 100755 --- a/indra/newview/app_settings/shaders/class1/objects/previewV.glsl +++ b/indra/newview/app_settings/shaders/class1/objects/previewV.glsl @@ -91,8 +91,8 @@ void main() // Collect normal lights (need to be divided by two, as we later multiply by 2) col.rgb += light_diffuse[1].rgb * calcDirectionalLight(norm, light_position[1].xyz); - col.rgb += light_diffuse[2].rgb*calcPointLightOrSpotLight(pos.xyz, norm, light_position[2], light_direction[2], 1.f/light_attenuation[2].x, light_attenuation[2].z); - col.rgb += light_diffuse[3].rgb*calcPointLightOrSpotLight(pos.xyz, norm, light_position[3], light_direction[3], 1.f/light_attenuation[3].x, light_attenuation[3].z); + col.rgb += light_diffuse[2].rgb*calcPointLightOrSpotLight(pos.xyz, norm, light_position[2], light_direction[2], light_attenuation[2].x, light_attenuation[2].z); + col.rgb += light_diffuse[3].rgb*calcPointLightOrSpotLight(pos.xyz, norm, light_position[3], light_direction[3], light_attenuation[3].x, light_attenuation[3].z); vertex_color = col*color; } |