API

Class TerrainMaterial

Hierarchy (View Summary)

Index
  • Instantiates a Terrain Material in the given scene

    Parameters

    • name: string

      The friendly name of the material

    • Optionalscene: any

      The scene to add the material to

    • forceGLSL: boolean = false

      Use the GLSL code generation for the shader (even on WebGPU). Default is false

    Returns TerrainMaterial

diffuseColor: any = ...
specularColor: any = ...
specularPower: number = 64
bumpTexture1: Texture
bumpTexture2: Texture
bumpTexture3: Texture
diffuseTexture1: Texture
diffuseTexture2: Texture
diffuseTexture3: Texture
disableLighting: boolean
maxSimultaneousLights: number
mixTexture: BaseTexture