diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag')
| -rw-r--r-- | contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag new file mode 100644 index 0000000..05fd18c --- /dev/null +++ b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #version 450 | ||
| 2 | |||
| 3 | layout(location = 0) in vec4 v_color; | ||
| 4 | layout(location = 1) in vec2 v_uv; | ||
| 5 | |||
| 6 | layout(set = 2, binding = 0) uniform sampler2D u_texture; | ||
| 7 | |||
| 8 | layout(location = 0) out vec4 o_color; | ||
| 9 | |||
| 10 | void main() { | ||
| 11 | o_color = texture(u_texture, v_uv) * v_color; | ||
| 12 | } | ||
