Describes all objects that can be moved around, rotated and scaled in the scene

Implements

Constructors

Properties

cubePosition: Vector3
helpers: Mesh[] = []
instancePatches: IPatch[] = []
mesh: Mesh

Methods

  • Initializes the chunk with the given vertex data. Scatters instances on the chunk based on the given instancesMatrixBuffer and alignedInstancesMatrixBuffer

    Parameters

    • vertexData: VertexData

      the vertex data to apply to the chunk

    • instancesMatrixBuffer: Float32Array

      the matrix buffer containing the instances matrix

    • alignedInstancesMatrixBuffer: Float32Array

      the matrix buffer containing the vertically aligned instances matrix

    • averageHeight: number

    Returns void

  • Returns true if the chunk is ready to be enabled (i.e if the chunk has recieved its vertex data)

    Returns boolean

    true if the chunk is ready to be enabled (i.e if the chunk has recieved its vertex data)