Cosmos Journeyer API Documentation - v1.10.1
    Preparing search index...

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

    Implements

    Index

    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
      • assets: RenderingAssets

      Returns void