Browse Source

GLTFLoader Extension Example: Fix Spotlight

Takahiro 6 years ago
parent
commit
7e4240fbca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/webgl_loader_gltf_extensions.html

+ 1 - 0
examples/webgl_loader_gltf_extensions.html

@@ -211,6 +211,7 @@
 					spot1.position.set( 10, 20, 10 );
 					spot1.angle = 0.25;
 					spot1.penumbra = 0.75;
+					spot1.decay = 0.0001;
 
 					if ( sceneInfo.shadows ) {