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

    Interface LiquidMaterialOptions

    Configuration options for LiquidMaterial.

    interface LiquidMaterialOptions {
        ambientMap?: Texture;
        color?: Color;
        crustColor?: Color;
        displacementMap?: Texture;
        flowSpeed?: number;
        noiseMap?: Texture;
        noiseScale?: number;
        normalMap?: Texture;
        specularMap?: Texture;
        waveAmplitude?: number;
        waveFrequency?: number;
    }
    Index

    Properties

    ambientMap?: Texture

    Ambient map for occlusion or base glow.

    color?: Color

    The base glow color of the liquid.

    crustColor?: Color

    The color of the crust or darker parts.

    displacementMap?: Texture

    Displacement map for vertex waves.

    flowSpeed?: number

    The speed of the liquid flow animation.

    noiseMap?: Texture

    A noise texture map used to generate the crust and flow.

    noiseScale?: number

    The scale of the noise.

    normalMap?: Texture

    Normal map for surface detail.

    specularMap?: Texture

    Specular map for shininess.

    waveAmplitude?: number

    Amplitude of the vertex waves.

    waveFrequency?: number

    Frequency of the vertex waves.