19 lines
350 B
GLSL
19 lines
350 B
GLSL
|
|
|
|
precision highp float;
|
|
|
|
attribute vec3 aVertexPosition;
|
|
attribute vec3 aVertexNormal;
|
|
|
|
varying vec3 normal;
|
|
|
|
uniform mat4 uWorld;
|
|
uniform mat4 uView;
|
|
uniform mat4 uProj;
|
|
|
|
void main(void){
|
|
vec4 pos = uProj * uView * uWorld * vec4(aVertexPosition, 1.0);
|
|
normal = (uWorld * vec4(aVertexNormal, 0.0)).xyz;
|
|
gl_Position = pos;
|
|
gl_PointSize = 10.0;
|
|
} |