2013-02-10 15:24:11 +00:00
|
|
|
attribute vec3 vPosition;
|
|
|
|
attribute vec3 Normal;
|
|
|
|
attribute vec2 vTexCoord;
|
|
|
|
|
2018-11-09 02:39:08 +00:00
|
|
|
//uniform mat4 ModelViewMatrix;
|
2013-02-10 15:24:11 +00:00
|
|
|
uniform mat4 ProjectionMatrix;
|
|
|
|
|
|
|
|
varying vec2 texCoord;
|
|
|
|
varying vec3 normVec;
|
2018-10-20 05:56:48 +00:00
|
|
|
varying vec3 posVec;
|
2013-02-10 15:24:11 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
//480x320
|
|
|
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
|
|
|
texCoord = vTexCoord;
|
|
|
|
|
|
|
|
normVec = Normal;
|
2018-10-20 05:56:48 +00:00
|
|
|
|
2018-10-29 21:03:42 +00:00
|
|
|
posVec = vPosition.xyz;
|
2013-02-10 15:24:11 +00:00
|
|
|
}
|