Files
vb01/depthMap.vert
2021-10-19 19:06:41 +03:00

14 lines
230 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
uniform mat4 model, lightMat;
uniform bool point;
void main(){
if(point)
gl_Position = model * vec4(aPos, 1);
else
gl_Position = lightMat * model * vec4(aPos, 1);
}