crystal-of-rhylil/assets/shaders/shader_bump_vertex.txt
2013-01-19 22:25:53 +00:00

14 lines
280 B
Plaintext

attribute vec3 vPosition;
attribute vec2 vTexCoord;
varying vec2 texCoord;
varying vec2 posCoord;
uniform mat4 ProjectionMatrix;
void main()
{
//480x320
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
posCoord = vPosition.xy;
texCoord = vTexCoord;
}