cube_vert.glsl.js 271 B

12345678910111213141516
  1. export default /* glsl */`
  2. varying vec3 vWorldDirection;
  3. #include <common>
  4. void main() {
  5. vWorldDirection = transformDirection( position, modelMatrix );
  6. #include <begin_vertex>
  7. #include <project_vertex>
  8. gl_Position.z = gl_Position.w; // set z to camera.far
  9. }
  10. `;