summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/commonPoint.glsl
blob: dc534d5030805b26498106b4947a0e84d50f6a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(`getMaterialDetail.glsl')

void
main()
{
	FragPos = (model * position) + modelPos;
	TexCoords = texCoord;
	Normal = (model * normal);
	Colour = colour;
	Material = getMaterialDetail(material);

	gl_Position = viewProjection * vec4(FragPos - viewPoint, 1);
}