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

    Class LavaMaterial

    A highly specialized material for rendering animated, glowing lava.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _renderManifest: RenderManifest | undefined = undefined

    Cached render manifest to avoid frequent allocations.

    ambientMap: Texture | undefined

    Optional ambient map.

    color: Color = Color.WHITE

    The base color of the material.

    crustColor: Color

    The color of the cooled crust or dark parts.

    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.

    displacementMap: Texture | undefined

    Optional displacement map.

    flowSpeed: number

    The speed of the flow animation.

    noiseMap: Texture | undefined

    The noise texture.

    noiseScale: number

    The scale of the noise pattern.

    normalMap: Texture | undefined

    Optional normal map.

    specularMap: Texture | undefined

    Optional specular map.

    time: number = 0.0

    The current time/frame for animation.

    transparent: boolean = false

    Whether the material is transparent. Defaults to false.

    The type of the material.

    uuid: string = ...

    The unique identifier of the material.

    waveAmplitude: number

    Wave amplitude.

    waveFrequency: number

    Wave frequency.

    Methods