summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl b/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl
index 5a6e481b18..90acb5be9e 100644
--- a/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl
+++ b/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl
@@ -38,9 +38,9 @@ void main()
{
//transform vertex
vec4 vert = vec4(position.xyz, 1.0);
- vec4 pos = (modelview_matrix * vert);
+ vec4 pos = modelview_projection_matrix*vert;
- gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0);
+ gl_Position = pos;
calcAtmospherics(pos.xyz);