blob: c0c29055c03e365c574ed29f6fd9a83f75d0b574 [file] [log] [blame]
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -06001/*
2 * Fragment shader for cube demo
3 */
GregF54dc3782015-12-15 11:23:43 -07004#version 400
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -06005#extension GL_ARB_separate_shader_objects : enable
6#extension GL_ARB_shading_language_420pack : enable
Chia-I Wu6e68a892015-02-23 10:41:08 -07007layout (binding = 1) uniform sampler2D tex;
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -06008
9layout (location = 0) in vec4 texcoord;
Cody Northropafe800a2015-06-05 13:35:01 -060010layout (location = 0) out vec4 uFragColor;
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -060011void main() {
Cody Northropafe800a2015-06-05 13:35:01 -060012 uFragColor = texture(tex, texcoord.xy);
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -060013}