blob: c4ea827ddb30465648b936a7f85e7f9e661fa1e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
out vec4 vworldPos;
ifdef(`TEXTURES', out vec2 vtexCoord;);
void
main()
{
vec3 worldPos = model * position;
vworldPos = vec4(worldPos - viewPoint + modelPos, 1);
ifdef(`TEXTURES', vtexCoord = texCoord;);
}
|