diff options
author | Graham Linden <graham@lindenlab.com> | 2018-09-18 19:47:50 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-09-18 19:47:50 +0100 |
commit | 08dd04aa98f9071d87a26573fb2807aaac1852eb (patch) | |
tree | 0cee4ad886ee4f958b0b9e6aed8231ef99cfda0b /indra/newview/app_settings | |
parent | eb5038fe755fd90b927359cd9fccd9ef2e951ca5 (diff) |
SL-1176
Tweak position of sun in disc shader to better match the offset applied to the sun glow in atmospherics.
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/sunDiscV.glsl | 2 | ||||
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/sunDiscV.glsl b/indra/newview/app_settings/shaders/class1/deferred/sunDiscV.glsl index 5b4302e237..c67ed8e6d9 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/sunDiscV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/sunDiscV.glsl @@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos); void main() { //transform vertex - vec4 vert = vec4(position.xyz, 1.0); + vec4 vert = vec4(position.xyz - vec3(0, 0, 50), 1.0); vec4 pos = modelview_projection_matrix*vert; gl_Position = pos; diff --git a/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl b/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl index 90acb5be9e..dd33a4be60 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/sunDiscV.glsl @@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos); void main() { //transform vertex - vec4 vert = vec4(position.xyz, 1.0); + vec4 vert = vec4(position.xyz - vec3(0, 0, 50), 1.0); vec4 pos = modelview_projection_matrix*vert; gl_Position = pos; |