Files
LearnOpenGL/src/5.advanced_lighting/3.1.shadow_mapping/shadow_mapping_depth.vs
Joey de Vries f6c5ac42fc Shadow tutorials added
Added source code of shadow mapping and omnidirectional shadow mapping
tutorial.
2015-05-15 11:25:35 +02:00

10 lines
193 B
GLSL

#version 330 core
layout (location = 0) in vec3 position;
uniform mat4 lightSpaceMatrix;
uniform mat4 model;
void main()
{
gl_Position = lightSpaceMatrix * model * vec4(position, 1.0f);
}