diff options
author | Graham Linden <graham@lindenlab.com> | 2018-08-23 00:53:11 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-08-23 00:53:11 +0100 |
commit | b86e899e7e51c56252479236df9a74f9bb432670 (patch) | |
tree | a3276191e36e0c77b17b28c7c9121874acf271f8 /indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl | |
parent | f45edabe478eb2e5ed899377f541875cbd566977 (diff) |
MAINT-9006
Make perspective projection consistent between ALM and non-ALM when drawing water (horizon matches).
Make perspective projection consistent between ALM and non-ALM when drawing heavenly bodies (sun disc position matches).
Make gamma correction of sun disc tex consistent between ALM and non-ALM rendering.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl | 4 |
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); |