2024-06-09 07:38:02 +00:00
|
|
|
attribute vec3 vPosition;
|
|
|
|
attribute vec2 vTexCoord;
|
|
|
|
|
|
|
|
uniform mat4 ProjectionMatrix;
|
|
|
|
uniform mat3 ModelRotateMatrix;
|
|
|
|
uniform vec3 ModelTranslateVector;
|
|
|
|
|
2024-06-06 13:25:38 +00:00
|
|
|
varying vec2 texCoord;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2024-06-09 07:38:02 +00:00
|
|
|
vec4 realVertexPos = vec4(ModelRotateMatrix * vPosition.xyz + ModelTranslateVector, 1.0);
|
|
|
|
gl_Position = ProjectionMatrix * realVertexPos;
|
|
|
|
|
|
|
|
texCoord = vTexCoord.st;
|
2024-06-06 13:25:38 +00:00
|
|
|
}
|