Buckets:

imerfanrajabee's picture
download
raw
1.1 kB
import InstanceNode from './InstanceNode.js';
import { nodeProxy } from '../tsl/TSLBase.js';
/**
* This is a special version of `InstanceNode` which requires the usage of {@link InstancedMesh}.
* It allows an easier setup of the instance node.
*
* @augments InstanceNode
*/
class InstancedMeshNode extends InstanceNode {
static get type() {
return 'InstancedMeshNode';
}
/**
* Constructs a new instanced mesh node.
*
* @param {InstancedMesh} instancedMesh - The instanced mesh.
*/
constructor( instancedMesh ) {
const { count, instanceMatrix, instanceColor } = instancedMesh;
super( count, instanceMatrix, instanceColor );
/**
* A reference to the instanced mesh.
*
* @type {InstancedMesh}
*/
this.instancedMesh = instancedMesh;
}
}
export default InstancedMeshNode;
/**
* TSL function for creating an instanced mesh node.
*
* @tsl
* @function
* @param {InstancedMesh} instancedMesh - The instancedMesh.
* @returns {InstancedMeshNode}
*/
export const instancedMesh = /*@__PURE__*/ nodeProxy( InstancedMeshNode ).setParameterLength( 1 );

Xet Storage Details

Size:
1.1 kB
·
Xet hash:
afd12e5e0edbd3870ba04bb9023b758ef8df2f22aa1738a2e6209e46c6c70fbe

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.