mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
19
libs/shaders/GL/imgui.vsh.glsl
Normal file
19
libs/shaders/GL/imgui.vsh.glsl
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user