fireball/lib/renderers/shaders/ShaderLib/cube_vert.glsl

15 lines
241 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
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
}