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