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

@@ -14,13 +14,17 @@
//------------[ Uniforms ]------------//
layout (location = 0) uniform mat4 mvp_matrix;
layout (location = 1) uniform float point_size;
#ifdef U_RGBA
layout (location = 2) uniform vec4 color;
#endif
#ifdef LIGHTING
layout (location = 3) uniform mat4 model_matrix;
layout (location = 4) uniform vec3 camera_position;
#endif
#ifdef RAINBOW
layout (location = 5) uniform float rainbow_offset_y;
layout (location = 6) uniform float rainbow_scale_y;