2023-09-10 14:46:07 +00:00
|
|
|
uniform mat4 model;
|
|
|
|
uniform mat4 cameraToShadowView;
|
|
|
|
uniform mat4 cameraToShadowProjector;
|
|
|
|
|
|
|
|
in vec3 position;
|
|
|
|
out vec4 v_position;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
gl_Position = cameraToShadowProjector * model * vec4(position, 1.0);
|
2023-10-17 19:07:05 +00:00
|
|
|
#ifdef VSMCUBE
|
2023-09-10 14:46:07 +00:00
|
|
|
v_position = cameraToShadowView * model * vec4(position, 1.0);
|
|
|
|
#else
|
|
|
|
v_position = gl_Position;
|
|
|
|
#endif
|
2023-12-04 08:10:39 +00:00
|
|
|
}
|