| /* | |
| * Fragment shader for cube demo | |
| */ | |
| #version 140 | |
| #extension GL_ARB_separate_shader_objects : enable | |
| #extension GL_ARB_shading_language_420pack : enable | |
| layout (binding = 1) uniform sampler2D tex; | |
| layout (location = 0) in vec4 texcoord; | |
| layout (location = 0) out vec4 uFragColor; | |
| void main() { | |
| uFragColor = texture(tex, texcoord.xy); | |
| } |