Explorar el Código

customDistanceMaterial is no longer required (#25091)

WestLangley hace 2 años
padre
commit
ae6f291920
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      examples/webgl_shadowmap_pointlight.html

+ 0 - 7
examples/webgl_shadowmap_pointlight.html

@@ -80,13 +80,6 @@
 					sphere.receiveShadow = true;
 					light.add( sphere );
 
-					// custom distance material
-					const distanceMaterial = new THREE.MeshDistanceMaterial( {
-						alphaMap: material.alphaMap,
-						alphaTest: material.alphaTest
-					} );
-					sphere.customDistanceMaterial = distanceMaterial;
-
 					return light;
 
 				}