Test shader now using vertex buffer. Fixed CMake script so that shaders are now recompiled and re-bundled without having to re-building Kraken SDK.

This commit is contained in:
2022-02-28 21:27:25 -08:00
parent b34ba9b096
commit 4cb3566906
4 changed files with 2 additions and 26 deletions

View File

@@ -21,6 +21,6 @@ vec3 colors[3] = vec3[](
);
void main() {
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
gl_Position = vec4(vertex_position * 0.5, 1.0);
fragColor = colors[gl_VertexIndex];
}