Forráskód Böngészése

add comment for texture transparency detection

takahiro 9 éve
szülő
commit
a1f61d3007
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      examples/js/loaders/MMDLoader.js

+ 1 - 0
examples/js/loaders/MMDLoader.js

@@ -2200,6 +2200,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 
 			if ( m.map !== null ) {
 			if ( m.map !== null ) {
 
 
+				// Check if this part of the texture image the material uses requires transparency
 				function checkTextureTransparency ( m ) {
 				function checkTextureTransparency ( m ) {
 
 
 					m.map.readyCallbacks.push( function ( t ) {
 					m.map.readyCallbacks.push( function ( t ) {