Add support for 8 vertex colors. Set up binding for all 8 texcoords.
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-06-03 22:44:34 -07:00
parent dbc21d5a5b
commit 8ae009cf92
11 changed files with 157 additions and 45 deletions

View File

@@ -38,10 +38,10 @@ layout (std140, binding = 0) uniform buf {
mat4 mvp_matrix; // mvp_matrix is the result of multiplying the model, view, and projection matrices
} ubuf;
layout (location = 0) in vec4 vertex_position;
layout (location = 1) in vec2 vertex_uv;
layout (location = 1) in vec2 vertex_texcoord0;
layout (location = 0) out vec2 textureCoordinate;
void main() {
textureCoordinate = vertex_uv;
textureCoordinate = vertex_texcoord0;
gl_Position = ubuf.mvp_matrix * vertex_position;
}