]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - shaders/sky/skybox/fragment.glsl
You can now see other players
[dragonblocks_alpha.git] / shaders / sky / skybox / fragment.glsl
index ce1bac4fa2168ca15e3c34494e7f8de166e49c12..e6c61b42963a966e71482fafadfd36c0eefb4aa4 100755 (executable)
@@ -1,4 +1,4 @@
-in vec3 fragmentTextureCoords;
+in vec3 fragmentTextureCoordinates;
 
 out vec4 outColor;
 
@@ -10,8 +10,8 @@ void main()
        vec4 topColor = texture(textures[0], vec3(0.0, 1.0, 0.0));
        vec4 bottomColor = texture(textures[0], vec3(1.0, 0.11, 0.5));
 
-       vec4 dayColor = mix(bottomColor, topColor, normalize(fragmentTextureCoords).y);
-       vec4 nightColor = texture(textures[1], fragmentTextureCoords);
+       vec4 dayColor = mix(bottomColor, topColor, normalize(fragmentTextureCoordinates).y);
+       vec4 nightColor = texture(textures[1], fragmentTextureCoordinates);
 
        outColor = mix(nightColor, dayColor, daylight);
 }