@three.ez/batched-mesh-extensions
Version:
Utility extension methods for BatchedMesh
13 lines • 634 B
JavaScript
import { BatchedMesh } from 'three';
import { getUniformAt, initUniformsPerInstance, setUniformAt } from '../core/feature/Uniforms.js';
import { extendBatchedMeshPrototypeCommon } from './ExtendBatchedMeshPrototype.common.js';
/**
* Enhances the BatchedMesh prototype with additional methods.
*/
export function extendBatchedMeshPrototype() {
extendBatchedMeshPrototypeCommon();
BatchedMesh.prototype.getUniformAt = getUniformAt;
BatchedMesh.prototype.setUniformAt = setUniformAt;
BatchedMesh.prototype.initUniformsPerInstance = initUniformsPerInstance;
}
//# sourceMappingURL=ExtendBatchedMeshPrototype.webgl.js.map