15 lines
241 B
Plaintext
15 lines
241 B
Plaintext
|
varying vec3 vWorldDirection;
|
||
|
|
||
|
#include <common>
|
||
|
|
||
|
void main() {
|
||
|
|
||
|
vWorldDirection = transformDirection( position, modelMatrix );
|
||
|
|
||
|
#include <begin_vertex>
|
||
|
#include <project_vertex>
|
||
|
|
||
|
gl_Position.z = gl_Position.w; // set z to camera.far
|
||
|
|
||
|
}
|