2013-12-24 10:44:39 +00:00
|
|
|
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 10:44:39 +00:00
|
|
|
|
2013-12-24 14:00:32 +00:00
|
|
|
gl_FragColor = applyToneMapping(gl_FragColor);
|
2013-12-24 10:44:39 +00:00
|
|
|
|
2013-12-24 14:00:32 +00:00
|
|
|
gl_FragColor.a = distanceFadeout();
|
2013-12-24 10:44:39 +00:00
|
|
|
}
|