std140 implementation

This commit is contained in:
ZY4N
2025-03-27 19:47:32 +01:00
parent 70893c083b
commit 6f60cc11c8
45 changed files with 789 additions and 234 deletions

View File

@@ -13,9 +13,11 @@
//------------[ Uniforms ]------------//
layout (location = 0) uniform mat4 mvp_matrix;
#ifdef LIGHTING
layout (location = 1) uniform mat4 model_matrix;
//layout (location = 1) uniform mat4 model_matrix;
#endif
// Can be replaced by material ambient filter, right?!?
#ifdef U_RGBA
layout (location = 4) uniform vec4 color;
#endif