diff options
Diffstat (limited to 'assets/shaders/shadows.vert')
-rw-r--r-- | assets/shaders/shadows.vert | 13 |
1 files changed, 5 insertions, 8 deletions
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); } |