mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-14 01:57:57 +01:00
10 lines
175 B
Plaintext
10 lines
175 B
Plaintext
|
varying vec3 vNormal;
|
||
|
varying float vDepth;
|
||
|
|
||
|
void main() {
|
||
|
vec2 normal = vNormal.xy / 2. + .5;
|
||
|
float depth = mod(vDepth, 1.);
|
||
|
|
||
|
gl_FragColor = vec4(normal, depth, 1.);
|
||
|
}
|