ayuncraft-1.5/lwjgl-rundir/resources_original/glsl/ssao.glsl

14 lines
303 B
Plaintext
Raw Normal View History

2022-01-18 13:58:14 -08:00
#line 0
precision lowp float;
varying lowp vec2 pos;
uniform sampler2D f_color;
uniform sampler2D f_depth;
uniform sampler2D f_ssao;
uniform ivec2 screenSize;
void main(){
vec2 a_pixel = (1.0 / screenSize) * 3.0;
gl_FragColor = vec4((texture2D(f_ssao, pos).r) * texture2D(f_color, pos).rgb, 1.0);
}