Chunk Loading

This commit is contained in:
Ben
2019-11-03 16:57:26 +00:00
parent 671ab913ab
commit 6b94db8140
9 changed files with 253 additions and 59 deletions

View File

@@ -17,8 +17,11 @@ void main() {
if (outColour.w == .0)
discard;
float fogMax = 20000;
float fogMax = 60000;
outColour = vec4(mix(outColour.xyz, SkyColour, min(1.0f, Distance / fogMax)), outColour.w);
vec3 colour = mix(outColour.xyz, SkyColour, min(1.0f, Distance / fogMax));
// Retain fragment transparency
outColour = vec4(colour, outColour.w);
}