This website works better with JavaScript
Home
Explore
Help
Sign In
javascript
/
three.js
mirror of
https://github.com/tazdij/three.js.git
Watch
2
Star
0
Fork
0
Files
Issues
0
Wiki
Browse Source
Revert "Distanced based fog"
WestLangley
7 years ago
parent
1ffaa41a4b
commit
73c2accb93
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
+ 1
- 1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
View File
@@ -1,4 +1,4 @@
#ifdef USE_FOG
-fogDepth =
length(mvPosition)
;
+fogDepth =
-mvPosition.z
;
#endif