libs/opengl/shaders/text.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 vec4 vertexColor; |
| 10 | |
| 11 | uniform highp mat4 p_matrix; |
| 12 | uniform highp mat4 mv_matrix; |
| 13 | |
| 14 | out lowp vec4 frag_color; |
| 15 | |
| 16 | void main() |
| 17 | { |
| 18 | highp vec4 eye_position = mv_matrix * vec4(position, 1.0); |
| 19 | gl_Position = p_matrix * eye_position; |
| 20 | frag_color = vertexColor; |
| 21 | } |
| 22 | )XXX" |