diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:23:17 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:23:17 +0200 |
| commit | 3dd580b7365e196bc2ba45d91bc7f78009f341ef (patch) | |
| tree | a991499eeed6564c42d0d5f71acf1f2109c256ab /thirdparty/imgui/backends/sdlgpu3/shader.vert | |
| parent | 1a92f70f699389219dbda42d175e7898cdbe7783 (diff) | |
Remove useless files in thirdparty directoy and move to simdjson
Diffstat (limited to 'thirdparty/imgui/backends/sdlgpu3/shader.vert')
| -rw-r--r-- | thirdparty/imgui/backends/sdlgpu3/shader.vert | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/thirdparty/imgui/backends/sdlgpu3/shader.vert b/thirdparty/imgui/backends/sdlgpu3/shader.vert new file mode 100644 index 0000000..3a85a90 --- /dev/null +++ b/thirdparty/imgui/backends/sdlgpu3/shader.vert @@ -0,0 +1,24 @@ +#version 450 core +layout(location = 0) in vec2 aPos; +layout(location = 1) in vec2 aUV; +layout(location = 2) in vec4 aColor; + +layout(set=1,binding=0) uniform UBO +{ + vec2 uScale; + vec2 uTranslate; +} ubo; + +layout(location = 0) out struct +{ + vec4 Color; + vec2 UV; +} Out; + +void main() +{ + Out.Color = aColor; + Out.UV = aUV; + gl_Position = vec4(aPos * ubo.uScale + ubo.uTranslate, 0, 1); + gl_Position.y *= -1.0f; +} |
