mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-19 20:37:55 +01:00
11 lines
241 B
Plaintext
11 lines
241 B
Plaintext
|
varying vec3 vNormal;
|
||
|
varying float vDepth;
|
||
|
|
||
|
void main() {
|
||
|
vNormal = normalize(normalMatrix * normal);
|
||
|
vDepth = (projectionMatrix * modelViewMatrix * vec4(position, 1.0)).z / 30.;
|
||
|
|
||
|
#include <begin_vertex>
|
||
|
#include <project_vertex>
|
||
|
}
|