Explorar o código

polygonOffset contact shadows

Fluqz %!s(int64=4) %!d(string=hai) anos
pai
achega
7477e4e209
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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!