Variable particleColorOverLifeBitConst Advanced
particleColorOverLifeBit: {
attributes: { aColorEnd: "unorm8x4" };
gl: { vertex: { beforeTransform: string } };
gpu: { vertex: { beforeTransform: string } };
name: string;
} = ...
Type Declaration
-
attributes: { aColorEnd: "unorm8x4" }
-
gl: { vertex: { beforeTransform: string } }
-
gpu: { vertex: { beforeTransform: string } }
-
name: string
Ramps a particle's tint from its spawn colour to
aColorEndacross its lifeaColorEndtakes{ x, y, z, w }, each 0 to 1 in display (sRGB) space, not aColorSource;wis unused, since particleAlphaOverLifeBit ramps opacity. Compose it after particleLifetimeBit.