OXYGENHUB
◆ main openmsx / share / shaders / monitor3D.vert
321 B · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
uniform mat4 u_mvpMatrix;
2
uniform mat3 u_normalMatrix;
3
4
attribute vec3 a_position;
5
attribute vec3 a_normal;
6
attribute vec2 a_texCoord;
7
8
varying float v_color;
9
varying vec2 v_texCoord;
10
11
void main()
12
{
13
	gl_Position = u_mvpMatrix * vec4(a_position, 1.0);
14
	v_texCoord = a_texCoord;
15
	v_color = (u_normalMatrix * a_normal).z;
16
}