double-hit-balls/assets/simple_shading.vertex

18 lines
363 B
Plaintext
Raw Permalink Normal View History

2018-05-30 15:36:00 +00:00
attribute vec3 vPosition;
attribute vec3 Normal;
attribute vec2 vTexCoord;
2018-05-31 14:47:36 +00:00
attribute vec3 vColor;
2018-05-30 15:36:00 +00:00
uniform mat4 ProjectionMatrix;
varying vec2 texCoord;
varying vec3 fragNormal;
2018-05-31 14:47:36 +00:00
varying vec3 fragColor;
2018-05-30 15:36:00 +00:00
void main() {
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
texCoord = vTexCoord;
fragNormal = Normal;
2018-05-31 14:47:36 +00:00
fragColor = vColor;
2018-05-30 15:36:00 +00:00
}