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

14 lines
283 B
GLSL
Raw Normal View History

uniform sampler2D groundTexture;
varying vec2 texcoord;
void main(void)
{
gl_FragColor = texture2D(groundTexture, texcoord);
2013-12-24 14:00:32 +00:00
gl_FragColor = applyAerialPerspective(gl_FragColor);
2013-12-24 14:00:32 +00:00
gl_FragColor = applyToneMapping(gl_FragColor);
2013-12-24 14:00:32 +00:00
gl_FragColor.a = distanceFadeout();
}