-in vec3 fragmentTextureCoords;
+in vec3 fragmentTextureCoordinates;
out vec4 outColor;
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);
}