Explorar o código

Add a better explanation of "weird things" in WebGLRenderer

Olli Etuaho %!s(int64=6) %!d(string=hai) anos
pai
achega
5189983cee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1770,7 +1770,7 @@ function WebGLRenderer( parameters ) {
 
 
 		// skinning uniforms must be set even if material didn't change
 		// skinning uniforms must be set even if material didn't change
 		// auto-setting of texture unit for bone texture must go before other textures
 		// auto-setting of texture unit for bone texture must go before other textures
-		// not sure why, but otherwise weird things happen
+		// otherwise textures used for skinning can take over texture units reserved for other material textures
 
 
 		if ( material.skinning ) {
 		if ( material.skinning ) {