Files
comaps/libs/shaders/GL/imgui.vsh.glsl
renderexpert 897d7a253d Refactor shaders to use GLES3 syntax
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
2025-08-17 08:30:56 +02:00

20 lines
362 B
GLSL

in vec2 a_position;
in vec2 a_texCoords;
in vec4 a_color;
out vec2 v_texCoords;
out vec4 v_color;
uniform mat4 u_projection;
void main()
{
v_texCoords = a_texCoords;
v_color = a_color;
gl_Position = vec4(a_position, 0, 1) * u_projection;
#ifdef VULKAN
gl_Position.y = -gl_Position.y;
gl_Position.z = (gl_Position.z + gl_Position.w) * 0.5;
#endif
}