summaryrefslogtreecommitdiff
path: root/external/imgui/backends/sdlgpu3/shader.frag
diff options
context:
space:
mode:
author0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
committer0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
commita66c7433c2c11b8b6c99142277ed4e16b1a2a465 (patch)
treee54bcfb59c303acf6118fd11f06d5c0bd5f24e5d /external/imgui/backends/sdlgpu3/shader.frag
initial commitHEADmaster
Diffstat (limited to 'external/imgui/backends/sdlgpu3/shader.frag')
-rw-r--r--external/imgui/backends/sdlgpu3/shader.frag15
1 files changed, 15 insertions, 0 deletions
diff --git a/external/imgui/backends/sdlgpu3/shader.frag b/external/imgui/backends/sdlgpu3/shader.frag
new file mode 100644
index 0000000..ab9ce18
--- /dev/null
+++ b/external/imgui/backends/sdlgpu3/shader.frag
@@ -0,0 +1,15 @@
+#version 450 core
+layout(location = 0) out vec4 fColor;
+
+layout(set=2, binding=0) uniform sampler2D sTexture;
+
+layout(location = 0) in struct
+{
+ vec4 Color;
+ vec2 UV;
+} In;
+
+void main()
+{
+ fColor = In.Color * texture(sTexture, In.UV.st);
+}