Selaa lähdekoodia

Examples: Clean up (#33981)

WestLangley 1 viikko sitten
vanhempi
sitoutus
7708fcc948

+ 1 - 1
examples/webgl_shadowmap_pointlight.html

@@ -54,7 +54,7 @@
 					const light = new THREE.PointLight( color, intensity, 20 );
 					light.castShadow = true;
 					light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
-					light.shadow.mapSize.width = 128;
+					light.shadow.mapSize.setScalar( 128 );
 					light.shadow.radius = 10;
 
 					let geometry = new THREE.SphereGeometry( 0.3, 12, 6 );

+ 1 - 1
examples/webgpu_shadowmap_pointlight.html

@@ -63,7 +63,7 @@
 					const light = new THREE.PointLight( color, intensity, 20 );
 					light.castShadow = true;
 					light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
-					light.shadow.mapSize.width = 128;
+					light.shadow.mapSize.setScalar( 128 );
 					light.shadow.radius = 10;
 
 					let geometry = new THREE.SphereGeometry( 0.3, 12, 6 );

粤ICP备19079148号