Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 1 | /* |
2 | * Fragment shader for cube demo | ||||
3 | */ | ||||
4 | #version 140 | ||||
5 | #extension GL_ARB_separate_shader_objects : enable | ||||
6 | #extension GL_ARB_shading_language_420pack : enable | ||||
7 | layout (binding = 0) uniform sampler2D tex; | ||||
8 | |||||
9 | layout (location = 0) in vec4 texcoord; | ||||
10 | void main() { | ||||
11 | gl_FragColor = texture(tex, texcoord.xy); | ||||
12 | } |