summaryrefslogtreecommitdiff
path: root/tests/mime-detection/test.gdshader
blob: 4150990e36789a2e2aedcb7e91d83631b6491c19 (plain)
1
2
3
4
5
6
7
8
shader_type spatial;
render_mode skip_vertex_transform;

void vertex() {
	// Disable the built-in modelview transform and do it manually.
	VERTEX = (MODELVIEW_MATRIX * vec4(VERTEX, 1.0)).xyz;
	NORMAL = normalize((MODELVIEW_MATRIX * vec4(NORMAL, 0.0)).xyz);
}