diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/gpu/shaders/tri_texture.vert')
| -rw-r--r-- | contrib/SDL-3.2.8/src/render/gpu/shaders/tri_texture.vert | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/contrib/SDL-3.2.8/src/render/gpu/shaders/tri_texture.vert b/contrib/SDL-3.2.8/src/render/gpu/shaders/tri_texture.vert deleted file mode 100644 index bdf4366..0000000 --- a/contrib/SDL-3.2.8/src/render/gpu/shaders/tri_texture.vert +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | #version 450 | ||
| 2 | |||
| 3 | layout(location = 0) in vec2 a_position; | ||
| 4 | layout(location = 1) in vec4 a_color; | ||
| 5 | layout(location = 2) in vec2 a_uv; | ||
| 6 | |||
| 7 | layout(location = 0) out vec4 v_color; | ||
| 8 | layout(location = 1) out vec2 v_uv; | ||
| 9 | |||
| 10 | layout(set = 1, binding = 0) uniform Context { | ||
| 11 | mat4 mvp; | ||
| 12 | vec4 color; /* XXX unused */ | ||
| 13 | vec2 texture_size; | ||
| 14 | } u_context; | ||
| 15 | |||
| 16 | void main() { | ||
| 17 | gl_Position = u_context.mvp * vec4(a_position, 0, 1); | ||
| 18 | v_color = a_color; | ||
| 19 | v_uv = a_uv / u_context.texture_size; | ||
| 20 | } | ||
