2017-10-02 07:54:05 -05:00
|
|
|
//We need this shader to pass the vertex color to the frag shader
|
|
|
|
|
|
|
|
|
|
varying vec4 vertexColor;
|
2018-11-08 09:14:44 -06:00
|
|
|
varying vec4 texCoords;
|
2017-10-02 07:54:05 -05:00
|
|
|
|
|
|
|
|
void main(void) {
|
2018-11-08 09:14:44 -06:00
|
|
|
vec4 position = vec4(gl_Vertex.xyz + gl_Normal * 0.125, 1.0);
|
|
|
|
|
gl_Position = gl_ModelViewProjectionMatrix * position;
|
|
|
|
|
texCoords = gl_MultiTexCoord0;
|
2017-10-02 07:54:05 -05:00
|
|
|
vertexColor = gl_Color;
|
|
|
|
|
}
|