threejs-worldgen
    Preparing search index...

    Class CurveUniforms

    GPU curves: colour (rgb) + opacity (w) and size, CURVE_KEYS keys each in uniform arrays, so editing a curve never rebuilds a shader.

    Index
    color: UniformArrayNode<string> = ...

    Colour + opacity uniform array.

    colorKeys: Vector4[] = ...

    rgb colour + opacity keys.

    size: UniformArrayNode<string> = ...

    Size uniform array.

    sizeKeys: Vector4[] = ...

    Size keys (x used).

    • Colour (rgb) and opacity (w) at life t (0…1).

      Parameters

      • t: any

      Returns any

    • Copies the curves in.

      Parameters

      • curves: {
            color: readonly string[];
            opacity: readonly number[];
            size: readonly number[];
        }

      Returns void