ash/examples/shader/texture/texture.vert

14 lines
279 B
GLSL
Raw Normal View History

2016-12-26 10:50:08 +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
layout (location = 0) in vec4 pos;
2016-12-26 10:50:08 +11:00
layout (location = 1) in vec2 uv;
2016-12-09 11:11:26 +11:00
2016-12-26 10:50:08 +11:00
layout (location = 0) out vec2 o_uv;
2016-12-09 11:11:26 +11:00
void main() {
2016-12-26 10:50:08 +11:00
o_uv = uv;
2016-12-09 11:11:26 +11:00
gl_Position = pos;
}