We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7a0e7c + e5ae6ac commit a8e8a59Copy full SHA for a8e8a59
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
@@ -1,4 +1,4 @@
1
2
#ifdef USE_FOG
3
-fogDepth = -mvPosition.z;
+fogDepth = length(mvPosition);
4
#endif
0 commit comments