libs/opengl/shaders/textured-triangles-no-light.f.glsl
raw| 1 | R"XXX(#version 300 es |
| 2 | |
| 3 | // FRAGMENT SHADER: Default shader for MRPT CRenderizable objects |
| 4 | // Jose Luis Blanco Claraco (C) 2019-2023 |
| 5 | // Part of the MRPT project |
| 6 | |
| 7 | uniform mediump sampler2D textureSampler; |
| 8 | |
| 9 | in mediump vec2 frag_UV; // Interpolated values from the vertex shaders |
| 10 | |
| 11 | out lowp vec4 color; |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | color = texture( textureSampler, frag_UV ); |
| 16 | } |
| 17 | |
| 18 | )XXX" |