summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/commonShadowPoint.glsl
blob: 9910d46348ec8367b6fa1da1f8713dcdafff115b (plain)
1
2
3
4
5
6
7
8
9
10
out vec4 vworldPos;

void
main()
{
	vec3 worldPos = model * position;
	vworldPos = vec4(worldPos - viewPoint + modelPos, 1);
	ifdef(`TEXTURES', TexCoords = texCoord;);
	ifdef(`TEXTURES', Material = getMaterialDetail(material););
}