Skip to content
Snippets Groups Projects
Commit 08dd04aa authored by Graham Linden's avatar Graham Linden
Browse files

SL-1176

Tweak position of sun in disc shader to better match the offset applied to the sun glow in atmospherics.
parent eb5038fe
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos); ...@@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos);
void main() void main()
{ {
//transform vertex //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; vec4 pos = modelview_projection_matrix*vert;
gl_Position = pos; gl_Position = pos;
......
...@@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos); ...@@ -37,7 +37,7 @@ void calcAtmospherics(vec3 eye_pos);
void main() void main()
{ {
//transform vertex //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; vec4 pos = modelview_projection_matrix*vert;
gl_Position = pos; gl_Position = pos;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment