Ver Fonte

GLTFLoader extensions example: set castShadow true for lights extension

Takahiro há 7 anos atrás
pai
commit
8ca9564927
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/webgl_loader_gltf_extensions.html

+ 1 - 1
examples/webgl_loader_gltf_extensions.html

@@ -348,7 +348,7 @@
 
 					object.traverse( function ( node ) {
 
-						if ( node.isMesh ) node.castShadow = true;
+						if ( node.isMesh || node.isLight ) node.castShadow = true;
 
 					} );