Selaa lähdekoodia

polygonOffset contact shadows

Fluqz 4 vuotta sitten
vanhempi
commit
7477e4e209
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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!