diff --git a/engine/src/core-data/Common/MatDefs/Misc/Sky.frag b/engine/src/core-data/Common/MatDefs/Misc/Sky.frag index 3e36e0af5..9f5940304 100644 --- a/engine/src/core-data/Common/MatDefs/Misc/Sky.frag +++ b/engine/src/core-data/Common/MatDefs/Misc/Sky.frag @@ -6,6 +6,6 @@ varying vec3 direction; void main() { vec3 dir = normalize(direction); - gl_FragColor = Optics_GetEnvColor(m_Texture, direction); + gl_FragColor = Optics_GetEnvColor(m_Texture, dir); } diff --git a/engine/src/core-data/Common/MatDefs/Misc/Sky.vert b/engine/src/core-data/Common/MatDefs/Misc/Sky.vert index 0426f8759..c65753d1e 100644 --- a/engine/src/core-data/Common/MatDefs/Misc/Sky.vert +++ b/engine/src/core-data/Common/MatDefs/Misc/Sky.vert @@ -21,5 +21,5 @@ void main(){ gl_Position = g_ProjectionMatrix * pos; vec4 normal = vec4(inNormal * m_NormalScale, 0.0); - direction = normalize( (g_WorldMatrix * normal).xyz ); + direction = (g_WorldMatrix * normal).xyz; }