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

    Interface FluidSurfaceMaterialOptions

    Configuration options for FluidSurfaceMaterial.

    interface FluidSurfaceMaterialOptions {
        color?: Color;
        distortion?: number;
        edgeColor?: Color;
        emissiveColor?: Color;
        emissiveStrength?: number;
        flowSpeed?: number;
        noiseMap?: Texture;
        normalMap?: Texture;
        viscosity?: number;
    }
    Index
    color?: Color

    The base color of the liquid.

    distortion?: number

    The distortion or noise scale.

    edgeColor?: Color

    The color of the edge intersection (foam/crust).

    emissiveColor?: Color

    Glow color for opaque/emissive presets (lava). Defaults to black -- no glow.

    emissiveStrength?: number

    Multiplier on emissiveColor. 0 disables the glow entirely (the default, plain-fluid look).

    flowSpeed?: number

    The speed of the liquid flow animation.

    noiseMap?: Texture

    A noise texture map used to generate the flow.

    normalMap?: Texture

    Normal map for surface detail.

    viscosity?: number

    The viscosity (affects wave frequency/amplitude).