diff options
Diffstat (limited to 'advanced_lighting/9.ssao/screen.frag')
-rw-r--r-- | advanced_lighting/9.ssao/screen.frag | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/advanced_lighting/9.ssao/screen.frag b/advanced_lighting/9.ssao/screen.frag new file mode 100644 index 0000000..3ae592d --- /dev/null +++ b/advanced_lighting/9.ssao/screen.frag @@ -0,0 +1,14 @@ +#version 330 core + +in vert_t { + vec2 tex_coords; +} vert; + +out vec4 frag_color; + +uniform sampler2D colorbuffer; + +void main() +{ + frag_color = vec4(texture(colorbuffer, vert.tex_coords).rgb, 1.0); +} |