Renderer · const
PARTICLE_SPARK_FRAG
Sparks and embers: additive, hot in the middle, and stretched along travel.
Explained in Hello world.
const PARTICLE_SPARK_FRAG: stringimport { PARTICLE_SPARK_FRAG } from '@driftengine/core';In depth
No lighting at all, deliberately — a spark is a light source, and shading it is what turned the first version into a grey cube at night. The core is allowed past white so it reads as incandescent rather than as a pale dot.