Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class TerrainMaterial

    Material specifically for terrain rendering with splatmapping.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _renderManifest: RenderManifest | undefined = undefined

    Cached render manifest to avoid frequent allocations.

    color: Color = Color.WHITE

    The base color of the material.

    cullMode: CullMode = CullMode.BACK

    The culling mode for this material. Defaults to BACK.

    depthTest: boolean = true

    Whether the material performs depth testing. Defaults to true.

    depthWrite: boolean = true

    Whether the material writes to the depth buffer. Defaults to true.

    grassMap: Texture | undefined

    Grass biome texture map.

    rockMap: Texture | undefined

    Rock biome texture map.

    sandMap: Texture | undefined

    Sand biome texture map.

    shininess: number

    The shininess factor.

    snowMap: Texture | undefined

    Snow biome texture map.

    texRepeat: [number, number]

    Texture repetition factors.

    thresholds: [number, number, number, number]

    Thresholds for biome transitions: [SandToGrass, GrassToRock, RockToSnow, TransitionSoftness].

    transparent: boolean = false

    Whether the material is transparent. Defaults to false.

    The type of the material.

    uuid: string = ...

    The unique identifier of the material.

    Methods