mirror of https://github.com/mode777/rayjs.git
13 lines
271 B
Plaintext
13 lines
271 B
Plaintext
|
#version 330
|
||
|
in vec3 vertexPosition;
|
||
|
in vec2 vertexTexCoord;
|
||
|
in vec4 vertexColor;
|
||
|
out vec2 fragTexCoord;
|
||
|
out vec4 fragColor;
|
||
|
uniform mat4 mvp;
|
||
|
void main()
|
||
|
{
|
||
|
fragTexCoord = vertexTexCoord;
|
||
|
fragColor = vertexColor;
|
||
|
gl_Position = mvp*vec4(vertexPosition, 1.0);
|
||
|
}
|