threejs-worldgen
    Preparing search index...

    Function lavaHeatSources

    • Emission sources for heat haze or sparks (ParticleSystem with emitter.shape: 'sources') from a read-back of the solver (MPMSolver.read): lava particles glowing hotter than minTemperature, weighted by their visible glow (lavaGlow), in the SOURCE_STRIDE layout (x, y, z world, weight, size, lift, tint, temperature scale). With ages (each particle's surface age, buffers.state w, read back), only surface particles count, at their skin temperature (lavaSkin); without, every particle at its bulk temperature. At most max sources, evenly thinned.

      Parameters

      • data: MPMParticleData
      • origin: readonly number[]
      • __namedParameters: {
            ages?: ArrayLike<number>;
            airTemperature?: number;
            lift?: number;
            material?: number;
            max?: number;
            minTemperature?: number;
        } = {}

      Returns Float32Array