Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / games / kart / src / main / rust / shaders / kart_gles.vert

kart_gles.vert18 lines · 564 BRaw
1#version 300 es
2// Unlit vertex-color kart shader (GLES 3.0 port of kart.vert): the mesh
3// carries the art (asphalt gray, grass green, per-kart box colors), so no
4// textures and no samplers. The Vulkan `clip.y` flip is removed — OpenGL NDC
5// Y already points up — so winding stays as authored (cull off either way).
6layout(location = 0) in vec3 inPos;
7layout(location = 1) in vec3 inColor;
8
9out vec3 vColor;
10out vec3 vWorld;
11
12uniform mat4 uViewProj;
13
14void main() {
15 vColor = inColor;
16 vWorld = inPos;
17 gl_Position = uViewProj * vec4(inPos, 1.0);
18}