paysages3d/src/render/opengl/shaders/terrain.frag

13 lines
283 B
GLSL

uniform sampler2D groundTexture;
varying vec2 texcoord;
void main(void)
{
gl_FragColor = texture2D(groundTexture, texcoord);
gl_FragColor = applyAerialPerspective(gl_FragColor);
gl_FragColor = applyToneMapping(gl_FragColor);
gl_FragColor.a = distanceFadeout();
}