Browse Source

Updated examples.

Mr.doob 4 months ago
parent
commit
fb49c2caa3

BIN
examples/screenshots/webgl_helpers.jpg


BIN
examples/screenshots/webgl_shadowmap_pointlight.jpg


BIN
examples/screenshots/webgpu_shadowmap_pointlight.jpg


+ 1 - 1
examples/webgl_helpers.html

@@ -55,7 +55,7 @@
 				light.position.set( 200, 100, 150 );
 				scene.add( light );
 
-				scene.add( new THREE.PointLightHelper( light, 15 ) );
+				scene.add( new THREE.PointLightHelper( light, 1 ) );
 
 				const gridHelper = new THREE.GridHelper( 400, 40, 0x0000ff, 0x808080 );
 				gridHelper.position.y = - 150;

+ 2 - 2
examples/webgl_shadowmap_pointlight.html

@@ -45,9 +45,9 @@
 
 				function createLight( color ) {
 
-					const intensity = 200;
+					const intensity = 400;
 
-					const light = new THREE.PointLight( color, intensity );
+					const light = new THREE.PointLight( color, intensity, 0, 3 );
 					light.castShadow = true;
 					light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
 					light.shadow.mapSize.width = 128;

+ 2 - 2
examples/webgpu_shadowmap_pointlight.html

@@ -45,9 +45,9 @@
 
 				function createLight( color ) {
 
-					const intensity = 200;
+					const intensity = 400;
 
-					const light = new THREE.PointLight( color, intensity );
+					const light = new THREE.PointLight( color, intensity, 0, 3 );
 					light.castShadow = true;
 					light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
 					light.shadow.mapSize.width = 128;

粤ICP备19079148号