61b0ab5332
Now it works! :)
25 lines
539 B
GLSL
25 lines
539 B
GLSL
#version 100
|
|
|
|
// Input vertex attributes
|
|
attribute vec3 vertexPosition;
|
|
attribute vec2 vertexTexCoord;
|
|
attribute vec4 vertexColor;
|
|
|
|
// Input uniform values
|
|
uniform mat4 mvp;
|
|
|
|
// Output vertex attributes (to fragment shader)
|
|
varying vec2 fragTexCoord;
|
|
varying vec4 fragColor;
|
|
|
|
// NOTE: Add here your custom variables
|
|
|
|
void main()
|
|
{
|
|
// Send vertex attributes to fragment shader
|
|
fragTexCoord = vertexTexCoord;
|
|
fragColor = vertexColor;
|
|
|
|
// Calculate final vertex position
|
|
gl_Position = mvp*vec4(vertexPosition, 1.0);
|
|
} |