فهرست منبع

polygonOffset contact shadows

Fluqz 4 سال پیش
والد
کامیت
7477e4e209
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      examples/webgl_shadow_contact.html

+ 2 - 0
examples/webgl_shadow_contact.html

@@ -117,6 +117,8 @@
 					transparent: true,
 				} );
 				plane = new THREE.Mesh( planeGeometry, planeMaterial );
+				plane.material.polygonOffset = true;
+				plane.material.polygonOffsetFactor = -.1;
 				shadowGroup.add( plane );
 
 				// the y from the texture is flipped!