Log inGet started
Package

eggcar.effect

Newest version

README.md

card

A soft, glowing particle card for the eggplant hot-rod's effects: exhaust flame, flame core, smoke, brake sparks and road spray. Each particle draws as a round, soft-edged sprite that faces the camera. With streak on, it is drawn as a streak stretched along its motion. Its brightness falls off from the centre.

Over the particle's life (shader_data lane 0, x from 0 at birth to 1 at death), the card fades in over fade_in, fades out with fade, and shifts colour from color_start to color_end. The output is premultiplied by coverage, so the same shader serves additive glow (flame, sparks) and premultiplied smoke.

Used by the materials in game.player.fx.eggcar (flame, flame_core, smoke, spark, spray).