SangeFault/assets/minecraft/shaders/core/position.fsh

17 lines
288 B
Text
Raw Permalink Normal View History

#version 150
#moj_import <fog.glsl>
uniform vec4 ColorModulator;
uniform float FogStart;
uniform float FogEnd;
uniform vec4 FogColor;
in float vertexDistance;
out vec4 fragColor;
void main() {
fragColor = linear_fog(ColorModulator, vertexDistance, FogStart, FogEnd, FogColor);
}