Explorar el Código

Merge pull request #13797 from takahirox/GLTFExampleCastShadow

GLTFLoader extensions example: set castShadow true for lights extension
Mr.doob hace 7 años
padre
commit
1ada98498c
Se han modificado 1 ficheros con 1 adiciones y 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;
 
 					} );