Melonjs Lighting

Use this skill for 2D dynamic lighting in melonJS — Light2d, ambient light on a Stage, multiple lights, and per-pixel normal-mapped sprites authored in SpriteIlluminator. Covers the ambient-cutout model, which parts need a GPU backend, and why Light2d does not survive a Camera3d. Triggers on: Light2d, lighting, ambientLight, ambientLightingColor, normalMap, SpriteIlluminator, per-pixel lighting, drawLight, torch, glow, darkness.

melonjs bfd71de 6.3 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-lighting commit bfd71de885

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-lighting