#version 150

#moj_import <minecraft:fog.glsl>
#moj_import <minecraft:dynamictransforms.glsl>

in float sphericalVertexDistance;
in float cylindricalVertexDistance;

out vec4 fragColor;

void main() {
    vec4 mfog = FogColor;
	//mfog.a = 1.0;
	
	fragColor = apply_fog(ColorModulator, sphericalVertexDistance, cylindricalVertexDistance, 1.0, FogSkyEnd, FogSkyEnd, FogSkyEnd, mfog);
	
	//	hueshift sky color a bit
	//	fragColor += vec4(0.18, 0.12, 0.46,   0) * 0.3;
}
