mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore(build): use SDL3
This commit is contained in:
parent
9d04a35d87
commit
b3c0734a9e
3286 changed files with 866354 additions and 554996 deletions
31
vendor/sdl-3.2.10/test/testgpu/cube.glsl
vendored
Normal file
31
vendor/sdl-3.2.10/test/testgpu/cube.glsl
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#version 450
|
||||
|
||||
#ifdef VERTEX
|
||||
|
||||
layout (location = 0) in vec3 in_position;
|
||||
layout (location = 1) in vec3 in_color;
|
||||
|
||||
layout (location = 0) out vec4 out_color;
|
||||
|
||||
layout (set = 1, binding = 0) uniform UBO
|
||||
{
|
||||
mat4x4 modelViewProj;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
out_color = vec4(in_color, 1.0);
|
||||
gl_Position = modelViewProj * vec4(in_position, 1.0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
layout (location = 0) in vec4 in_color;
|
||||
layout (location = 0) out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
out_color = in_color;
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue