This website works better with JavaScript
Trang chủ
Khám phá
Trợ giúp
Đăng nhập
javascript
/
three.js
mirror of
https://github.com/tazdij/three.js.git
Xem
2
Star
0
Fork
0
Các tập tin
Các vấn đề
0
Wiki
Browse Source
Revert "Distanced based fog"
WestLangley
7 năm trước cách đây
mục cha
1ffaa41a4b
commit
73c2accb93
1 tập tin đã thay đổi
với
1 bổ sung
và
1 xóa
Split View
Hiển thị tình trạng sai khác
1
1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
+ 1
- 1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
Xem Tập Tin
@@ -1,4 +1,4 @@
#ifdef USE_FOG
-fogDepth =
length(mvPosition)
;
+fogDepth =
-mvPosition.z
;
#endif