melonJS
    Preparing search index...

    Interface InstancedMeshOwnSettings

    interface InstancedMeshOwnSettings {
        instanceColors?: boolean;
        instanceCount?: number;
        instanceData?: boolean;
    }
    Index
    instanceColors?: boolean

    give each instance its own colour (16 bytes per instance), multiplied into the mesh tint

    instanceCount?: number

    number of instances to pre-allocate. Instances start at the group origin (identity transform) until placed; addInstance grows past this.

    instanceData?: boolean

    give each instance an opaque vec4 (16 bytes per instance). Read as emissive by the built-in lit shading, or as anything at all by a custom mesh shader.