Skill / SKILL.md

Melonjs Lighting

melonjs/melonJS

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 specular highlights via shininess, the ambient-cutout model, which parts need a GPU backend, and why Light2d does not survive a Camera3d. Triggers on: Light2d, softness, soft light, lightHeight, setRadii, specular, shininess, highlight, glint, lighting, ambientLight, ambientLightingColor, normalMap, SpriteIlluminator, per-pixel lighting, drawLight, torch, glow, darkness.
1 views 6,532 repository starsUpdated Nov 28, 2026
Overview

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 specular highlights via shininess, the ambient-cutout model, which parts need a GPU backend, and why Light2d does not survive a Camera3d. Triggers on: Light2d, softness, soft light, lightHeight, setRadii, specular, shininess, highlight, glint, lighting, ambientLight, ambientLightingColor, normalMap, SpriteIlluminator, per-pixel lighting, drawLight, torch, glow, darkness.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/melonjs/melonJS' skill-source

Use the complete skill-source/packages/melonjs/skills/melonjs-lighting directory with your client’s skill installer.

  • packages/melonjs/skills/melonjs-lighting

    master · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory packages/melonjs/skills/melonjs-lighting

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
cc3da7c53e90aee9c331c66152be9dc0e0b64acccabad1b71385a7deced5d155
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills