浏览代码

Improved RectAreaLight example.

Mr.doob 8 年之前
父节点
当前提交
4cd625fef8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/webgl_lights_rectarealight.html

+ 3 - 3
examples/webgl_lights_rectarealight.html

@@ -123,9 +123,9 @@
 				stats = new Stats();
 				document.body.appendChild( stats.dom );
 
-				camera.position.set( 0, 20, 45 );
+				camera.position.set( 0, 20, 35 );
 
-				rectLight = new THREE.RectAreaLight( 0xffffff, 100, 10, 10 );
+				rectLight = new THREE.RectAreaLight( 0xffffff, 500, 10, 10 );
 				rectLight.position.set( 5, 5, 0 );
 
 				// TODO: ensure RectAreaLight handles target param correctly
@@ -263,7 +263,7 @@
 
 				} );
 
-				lightFolder.add( param, 'intensity', 0.0, 400 ).onChange( function ( val ) {
+				lightFolder.add( param, 'intensity', 0.0, 1000 ).onChange( function ( val ) {
 
 					rectLight.intensity = val;