diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgb.frag')
| -rw-r--r-- | contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgb.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgb.frag b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgb.frag new file mode 100644 index 0000000..9a9ada8 --- /dev/null +++ b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgb.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 = vec4(texture(u_texture, v_uv).rgb, 1) * v_color; | ||
| 12 | } | ||
