examples/widgets/rhi/cuberhiwidget/shaders/texture.vert
raw| 1 | #version 440 |
| 2 | |
| 3 | layout(location = 0) in vec4 position; |
| 4 | layout(location = 1) in vec2 texcoord; |
| 5 | layout(location = 0) out vec2 v_texcoord; |
| 6 | |
| 7 | layout(std140, binding = 0) uniform buf { |
| 8 | mat4 mvp; |
| 9 | }; |
| 10 | |
| 11 | void main() |
| 12 | { |
| 13 | v_texcoord = vec2(texcoord.x, texcoord.y); |
| 14 | gl_Position = mvp * position; |
| 15 | } |