1 in vec3 fragmentPosition;
2 in vec3 fragmentNormal;
3 in vec2 fragmentTextureCoordinates;
4 in float fragmentTextureIndex;
10 uniform vec3 cameraPos;
11 uniform sampler2D textures[MAX_TEXTURE_UNITS];
15 outColor = texture(textures[int(fragmentTextureIndex + 0.5)], fragmentTextureCoordinates) * vec4(fragmentColor, 1.0);
16 outColor.rgb = mix(outColor.rgb, fogColor, clamp(length(fragmentPosition - cameraPos) / VIEW_DISTANCE, 0.0, 1.0));
18 if (outColor.a == 0.0)