15 lines
288 B
Plaintext
15 lines
288 B
Plaintext
|
attribute vec3 vPosition;
|
||
|
attribute vec3 Normal;
|
||
|
attribute vec3 vColor;
|
||
|
|
||
|
uniform mat4 ProjectionMatrix;
|
||
|
|
||
|
varying vec3 fragNormal;
|
||
|
varying vec3 fragColor;
|
||
|
|
||
|
void main() {
|
||
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||
|
fragNormal = Normal;
|
||
|
fragColor = vColor;
|
||
|
}
|