Browse Source

Examples: Fix shadow map enabled in `webgpu_shadowmap` (#29520)

sunag 1 năm trước cách đây
mục cha
commit
9af0a09049
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      examples/webgpu_shadowmap.html

+ 1 - 0
examples/webgpu_shadowmap.html

@@ -174,6 +174,7 @@
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setAnimationLoop( animate );
+				renderer.shadowMap.enabled = true;
 				renderer.toneMapping = THREE.ACESFilmicToneMapping;
 				document.body.appendChild( renderer.domElement );
 

粤ICP备19079148号