qzdoom-gpl/wadsrc/static/shaders/glsl/ssaocombine.fp
2016-09-25 00:19:16 +02:00

11 lines
216 B
GLSL

in vec2 TexCoord;
out vec4 FragColor;
uniform sampler2D AODepthTexture;
void main()
{
float attenutation = texture(AODepthTexture, TexCoord).x;
FragColor = vec4(attenutation, attenutation, attenutation, 0.0);
}