Hilo3d API - v2.0.0-alpha.4
    Preparing search index...

    Class ParticleGradient

    Immutable linear-RGBA gradient with a fixed CPU/GPU LUT representation.

    Index
    keys: readonly Readonly<ParticleGradientKey>[]
    • Bake tightly packed linear RGBA float32 texels.

      Parameters

      • sampleCount: number = 256

      Returns Float32Array

    • Sample into a caller-provided array to avoid hot-path allocation.

      Parameters

      • time: number
      • target: Float32Array
      • offset: number = 0

      Returns void