feat: legacy

This commit is contained in:
TrèsAbhi committed 2024-09-14 12:12:46 -05:00
1 parent 9640920863
commit 8d9ca3d716
271 files changed
+1 -1

No files matched your search

@@ -1,15 +0,0 @@
import { Material, Mesh, Object3D, Vector3 } from 'three';
export function discardClippingPlane(object: Object3D, point: Vector3) {
if (
object instanceof Mesh &&
object.material instanceof Material &&
object.material.clippingPlanes !== null
) {
return object.material.clippingPlanes.every(
(plane) => plane.distanceToPoint(point) < 0,
);
}
return false;
}