summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-18 13:38:27 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-18 13:38:27 +1000
commitc43bee3ec89e0863b4195ca9298a007d3526a6d9 (patch)
tree15998b606cc1b86d975f200ce09069bafd10d868 /assets
parentb872bd904f31dd90757a02e1bdda5598193c7bcc (diff)
getting skybox ready
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/shadows.vert13
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);
}