aboutsummaryrefslogtreecommitdiff
path: root/shaders/gles100/base.vs
blob: eff89c56a96ad8d7d2d96c409d83e44a5a5afc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#version 100

attribute vec3 vertexPosition;
attribute vec2 vertexTexCoord;
attribute vec3 vertexNormal;

varying vec2 fragTexCoord;

uniform mat4 projectionMatrix;
uniform mat4 modelviewMatrix;

// NOTE: Add here your custom variables 

void main()
{
    vec3 normal = vertexNormal;
    
    fragTexCoord = vertexTexCoord;
    
    gl_Position = projectionMatrix*modelviewMatrix*vec4(vertexPosition, 1.0);
}