Files
comaps/libs/shaders/GL/imgui.vsh.glsl
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

20 lines
391 B
GLSL

attribute vec2 a_position;
attribute vec2 a_texCoords;
attribute vec4 a_color;
varying vec2 v_texCoords;
varying 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
}