VFX-JS
    Preparing search index...

    Type Alias FluidParams

    type FluidParams = {
        curlStrength: number;
        densityDissipation: number;
        dyeSplatIntensity: number;
        dyeSplatRadius: number;
        pressureIterations: number;
        showDye: boolean;
        simSize: [number, number];
        splatForce: number;
        splatRadius: number;
        velocityDissipation: number;
    }
    Index

    Properties

    curlStrength: number

    Vorticity confinement strength.

    densityDissipation: number

    Per-frame dye decay.

    dyeSplatIntensity: number

    Dye intensity per uv-unit/sec of mouse speed.

    dyeSplatRadius: number

    Dye-splat falloff (uv² units).

    pressureIterations: number

    Jacobi iterations per frame (1 is the established default).

    showDye: boolean

    When true, output is the raw dye buffer instead of advected src.

    simSize: [number, number]

    Simulation grid resolution in physical px.

    splatForce: number

    Velocity injected per uv-unit of mouse motion.

    splatRadius: number

    Velocity-splat falloff (uv² units).

    velocityDissipation: number

    Per-frame velocity decay.