summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/basicShader.vs
blob: e673548ee8e65260d2336980e1724a32775890df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#version 120

attribute vec3 position;
attribute vec2 texCoord;
attribute vec3 normal;

varying vec2 texCoord0;
varying vec3 normal0;

uniform mat4 MVP;
uniform mat4 Normal;

void main()
{
	gl_Position = MVP * vec4(position, 1.0);
	texCoord0 = texCoord;
	normal0 = (Normal * vec4(normal, 0.0)).xyz;
}