This website works better with JavaScript
Página Principal
Explorar
Ajuda
Iniciar Sessão
javascript
/
three.js
mirror de
https://github.com/tazdij/three.js.git
Vigiar
2
Colocar Estrela
0
Fork
0
Ficheiros
Problemas
0
Wiki
Ver Fonte
Revert "Distanced based fog"
WestLangley
há 7 anos atrás
pai
1ffaa41a4b
commit
73c2accb93
1 ficheiros alterados
com
1 adições
e
1 exclusões
Visão Dividida
Mostrar Estatísticas Diff
1
1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
+ 1
- 1
src/renderers/shaders/ShaderChunk/fog_vertex.glsl
Ver Ficheiro
@@ -1,4 +1,4 @@
#ifdef USE_FOG
-fogDepth =
length(mvPosition)
;
+fogDepth =
-mvPosition.z
;
#endif