BgVertex.glsl 219 B

123456
  1. varying vec3 vWorldPosition;
  2. void main() {
  3. vec4 worldPosition = modelMatrix * vec4( position, 1.0 );
  4. vWorldPosition = worldPosition.xyz;
  5. gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
  6. }