@three.ez/batched-mesh-extensions
Version:
Utility extension methods for BatchedMesh
27 lines • 1.58 kB
JavaScript
import { BatchedMesh } from 'three';
import { computeBVH } from '../core/feature/ComputeBVH.js';
import { BVHCulling, frustumCulling, linearCulling, onBeforeRender, updateIndexArray, updateRenderList } from '../core/feature/FrustumCulling.js';
import { applyMatrixAtToSphere, getPositionAndMaxScaleOnAxisAt, getPositionAt } from '../core/feature/GetPositionAt.js';
import { addGeometryLOD, getLODIndex } from '../core/feature/LOD.js';
import { checkInstanceIntersection, raycast } from '../core/feature/Raycasting.js';
/**
* @internal
* Enhances the BatchedMesh prototype with additional methods.
*/
export function extendBatchedMeshPrototypeCommon() {
BatchedMesh.prototype.computeBVH = computeBVH;
BatchedMesh.prototype.onBeforeRender = onBeforeRender;
BatchedMesh.prototype.frustumCulling = frustumCulling;
BatchedMesh.prototype.updateIndexArray = updateIndexArray;
BatchedMesh.prototype.updateRenderList = updateRenderList;
BatchedMesh.prototype.BVHCulling = BVHCulling;
BatchedMesh.prototype.linearCulling = linearCulling;
BatchedMesh.prototype.getPositionAt = getPositionAt;
BatchedMesh.prototype.getPositionAndMaxScaleOnAxisAt = getPositionAndMaxScaleOnAxisAt;
BatchedMesh.prototype.applyMatrixAtToSphere = applyMatrixAtToSphere;
BatchedMesh.prototype.addGeometryLOD = addGeometryLOD;
BatchedMesh.prototype.getLODIndex = getLODIndex;
BatchedMesh.prototype.raycast = raycast;
BatchedMesh.prototype.checkInstanceIntersection = checkInstanceIntersection;
}
//# sourceMappingURL=ExtendBatchedMeshPrototype.common.js.map