summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/commonShadowPoint.glsl
blob: 47722d652e082a375b737d4e0419d36fe011e15b (plain)
1
2
3
4
5
6
7
void
main()
{
	vec3 worldPos = model * position;
	gl_Position = viewProjection * vec4(worldPos - viewPoint + modelPos, 1);
	gl_Position.z = max(gl_Position.z, -1);
}