varying vec3 vWorldPosition; #include void main() { vWorldPosition = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; // set z to camera.far }