Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Fragment shader for cube demo |
| 3 | */ |
GregF | 54dc378 | 2015-12-15 11:23:43 -0700 | [diff] [blame] | 4 | #version 400 |
Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 5 | #extension GL_ARB_separate_shader_objects : enable |
| 6 | #extension GL_ARB_shading_language_420pack : enable |
Chia-I Wu | 6e68a89 | 2015-02-23 10:41:08 -0700 | [diff] [blame] | 7 | layout (binding = 1) uniform sampler2D tex; |
Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 8 | |
| 9 | layout (location = 0) in vec4 texcoord; |
Cody Northrop | afe800a | 2015-06-05 13:35:01 -0600 | [diff] [blame] | 10 | layout (location = 0) out vec4 uFragColor; |
Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 11 | void main() { |
Cody Northrop | afe800a | 2015-06-05 13:35:01 -0600 | [diff] [blame] | 12 | uFragColor = texture(tex, texcoord.xy); |
Courtney Goeltzenleuchter | 21c58b0 | 2014-10-30 10:07:20 -0600 | [diff] [blame] | 13 | } |