Browse Source

Set shadowMap.renderSingleSided to false

... required in this case because the cloth is double-sided.
WestLangley 8 năm trước cách đây
mục cha
commit
0efe0e30f6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      examples/webgl_animation_cloth.html

+ 1 - 0
examples/webgl_animation_cloth.html

@@ -272,6 +272,7 @@
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setClearColor( scene.fog.color );
+				renderer.shadowMap.renderSingleSided = false;
 
 				container.appendChild( renderer.domElement );