浏览代码

customDistanceMaterial is no longer required (#25091)

WestLangley 2 年之前
父节点
当前提交
ae6f291920
共有 1 个文件被更改,包括 0 次插入7 次删除
  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;
 
 				}