summaryrefslogtreecommitdiff
path: root/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-03-06 13:26:57 -0800
committer3gg <3gg@shellblade.net>2026-03-06 13:26:57 -0800
commitf5c89b3bd5d74849757fd5b4d1a300068522a3ca (patch)
treed6f6e4c81745b393d7594b334710f30c0b2df3bd /SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
Initial commitHEADmain
Diffstat (limited to 'SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag')
-rw-r--r--SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag b/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
new file mode 100644
index 0000000..05fd18c
--- /dev/null
+++ b/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
@@ -0,0 +1,12 @@
1#version 450
2
3layout(location = 0) in vec4 v_color;
4layout(location = 1) in vec2 v_uv;
5
6layout(set = 2, binding = 0) uniform sampler2D u_texture;
7
8layout(location = 0) out vec4 o_color;
9
10void main() {
11 o_color = texture(u_texture, v_uv) * v_color;
12}