Skip to content

History / Using SpriteIlluminator for Per pixel Lighting

Revisions

  • Add 'Using SpriteIlluminator for Per-pixel Lighting' page Walks through the full SpriteIlluminator + TexturePacker + melonJS workflow for per-pixel normal-map lighting: - Generating normal maps with SpriteIlluminator (Bevel/Emboss) - Packing color + normal sheets together with TexturePacker ("Pack with same layout") - Loading both into a paired `TextureAtlas` in melonJS - Driving the lighting with a `Light2d` (`illuminationOnly` for invisible logical sources, `lightHeight` for grazing/head-on look, ambient floor color, etc.) - Sidecar pattern for non-atlas sprites - Live example pointer Linked from Home.md under Third-Party Tools, between TexturePacker and PhysicsEditor (the SpriteIlluminator workflow naturally follows TexturePacker's atlas-with-same-layout output).

    @obiotobiot committed May 5, 2026