diff options
Diffstat (limited to 'pbr/1.1.lighting/default.frag')
-rw-r--r-- | pbr/1.1.lighting/default.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pbr/1.1.lighting/default.frag b/pbr/1.1.lighting/default.frag new file mode 100644 index 0000000..9351a1b --- /dev/null +++ b/pbr/1.1.lighting/default.frag @@ -0,0 +1,15 @@ +#version 330 core + +in vert_t { + vec2 tex_coords; +} vert; + +out vec4 frag_color; + +uniform sampler2D colorbuffer; + +void main(void) +{ + vec3 color = vec3(texture(colorbuffer, vert.tex_coords)); + frag_color = vec4(color, 1.0); +} |