Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TerrainBlock

Terrain block

Hierarchy

  • TerrainBlock

Index

Constructors

constructor

Properties

Private _index

_index: number[] = [1, 1]

Private _info

Private _lightmapInfo

_lightmapInfo: TerrainBlockLightmapInfo | null = null

Private _node

Private _renderable

_renderable: TerrainRenderable

Private _terrain

_terrain: Terrain

Private _weightMap

_weightMap: Texture2D | null = null

Accessors

layers

  • get layers(): number[]

lightmap

lightmapUVParam

  • get lightmapUVParam(): Vec4

Methods

getMaterialDefines

invalidMaterial

  • _invalidMaterial(): void

updateHeight

  • _updateHeight(): void

updateLightmap

updateMaterial

  • updateMaterial(init: boolean): void

updateWeightMap

  • _updateWeightMap(): void

build

  • build(): void

destroy

  • destroy(): void

getIndex

  • getIndex(): number[]

getLayer

  • getLayer(index: number): number

getMaxLayer

  • getMaxLayer(): 1 | 0 | 2 | 3

getRect

getTerrain

rebuild

  • rebuild(): void

setBrushMaterial

  • setBrushMaterial(mtl: Material | null): void

setLayer

  • setLayer(index: number, layerId: number): void

update

  • update(): void

Generated using TypeDoc