summaryrefslogtreecommitdiff
path: root/assets/shaders/shadows.vert
blob: 00b1a8105948dd0bd7c725f8892a9845fb1e81b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#version 410 core

// Vertex attributes
layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inNormal;
layout(location = 2) in vec2 inTexCoords;

// Uniforms
uniform Model {
  mat4 mat;
};

uniform LightSpace {
  mat4 mat;
};

void main() {
  gl_Position = LightSpace.mat * Model.mat * vec4(inPosition, 1.0);
}