Explorar o código

GLTFLoader extensions example: set castShadow true for lights extension

Takahiro %!s(int64=7) %!d(string=hai) anos
pai
achega
8ca9564927
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 
 					} );