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