v4k-git-backup/engine/art/shaders/vs_shadow_vsm.glsl

15 lines
356 B
Plaintext
Raw Normal View History

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);
#if VSMCUBE
v_position = cameraToShadowView * model * vec4(position, 1.0);
#else
v_position = gl_Position;
#endif
}