ash/examples/texture/shader/triangle.frag

19 lines
396 B
GLSL
Raw Normal View History

2016-12-11 07:30:51 +11:00
#version 450
2016-12-09 11:11:26 +11:00
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
2016-12-12 11:08:12 +11:00
layout (binding = 1) uniform sampler2D samplerColor;
2016-12-11 07:30:51 +11:00
layout (binding = 0) uniform UBO{
vec3 color;
} ubo;
2016-12-12 11:08:12 +11:00
layout (location = 0) in vec2 o_uv;
2016-12-09 11:11:26 +11:00
layout (location = 0) out vec4 uFragColor;
void main() {
2016-12-12 11:08:12 +11:00
vec4 color = texture(samplerColor, o_uv);
uFragColor = color;
2016-12-09 11:11:26 +11:00
}