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

    Interface FluidSurfaceMaterialOptions

    Configuration options for FluidSurfaceMaterial.

    interface FluidSurfaceMaterialOptions {
        color?: Color;
        distortion?: number;
        edgeColor?: Color;
        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).

    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).