libs/opengl/shaders/textured-triangles-no-light.v.glsl
raw| 1 | R"XXX(#version 300 es |
| 2 | |
| 3 | // VERTEX SHADER: Default shader for MRPT CRenderizable objects |
| 4 | // Jose Luis Blanco Claraco (C) 2019-2023 |
| 5 | // Part of the MRPT project |
| 6 | |
| 7 | |
| 8 | in vec3 position; |
| 9 | in vec2 vertexUV; |
| 10 | |
| 11 | uniform highp mat4 pmv_matrix; |
| 12 | |
| 13 | out mediump vec2 frag_UV; // Interpolated UV texture coords |
| 14 | |
| 15 | void main() |
| 16 | { |
| 17 | frag_UV = vertexUV; |
| 18 | |
| 19 | gl_Position = pmv_matrix * vec4(position, 1.0); |
| 20 | } |
| 21 | )XXX" |