shaderRadiancePerVertexInterp.vert 446 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// ShaderRadiancePerVertex::vertexShaderInterpText

ATTRIBUTE vec3 VertexPosition;
ATTRIBUTE vec3 VertexNormal;
ATTRIBUTE ivec2 VertexParam;

uniform mat4 ModelViewProjectionMatrix ;

VARYING_VERT vec3 vnorm;
VARYING_VERT vec3 vpos;
VARYING_VERT ivec2 vtexcoord ;

INVARIANT_POS;

void main ()
{
	vpos = VertexPosition;
	vnorm = VertexNormal;
	vtexcoord = VertexParam;

    gl_Position = ModelViewProjectionMatrix * vec4 (VertexPosition, 1.0);
}