From c43bee3ec89e0863b4195ca9298a007d3526a6d9 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 13:38:27 +1000 Subject: getting skybox ready --- assets/shaders/shadows.vert | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'assets/shaders/shadows.vert') diff --git a/assets/shaders/shadows.vert b/assets/shaders/shadows.vert index 1d1c59a..65ff169 100644 --- a/assets/shaders/shadows.vert +++ b/assets/shaders/shadows.vert @@ -6,14 +6,11 @@ layout(location = 1) in vec3 inNormal; layout(location = 2) in vec2 inTexCoords; // Uniforms -uniform Model { - mat4 mat; -} model; - -uniform LightSpace { - mat4 mat; -} lightSpace; +uniform ShadowUniforms { + mat4 model; + mat4 lightSpace; +} uniforms; void main() { - gl_Position = lightSpace.mat * model.mat * vec4(inPosition, 1.0); + gl_Position = uniforms.lightSpace * uniforms.model * vec4(inPosition, 1.0); } -- cgit v1.2.3-70-g09d2