@zaisma/lighting-effects
Camera effects for the lighting piece: bloom on bright things, colour grading with named moods, sun rays and soft shade in corners. Each is off until a game turns it on, has its own level per device, and steps down with the lighting when frames run slow, so a phone keeps its frame rate.
- Kind
- Extension
- Built on
- @zaisma/standard
- Version
- 1.0.0
- Licence
- MIT, open source
- By
- btc7274
- Rated
- No ratings yet
ShellCopied
npx @zaisma/cli pieces add @zaisma/lighting-effectsWhat it needs
- @zaisma/lighting^1.0.0 · 1.1.0 on the marketplace · Not testedPiece
- @zaisma/piece^1.0.0 · 1.1.0 on the marketplace · Not testedPiece
- three>=0.163.0 <1.0.0 · A library from npm · Not testedLibrary
Nothing: it stands on its own.
Fits is said only for what Zaisma ran together. Not tested means nobody at Zaisma has.
Settings and hooks
Everything a game can change without editing the piece, so it moves to a newer version and keeps the game's changes.
- bloom_levelBloom: a soft glow round bright things, the sun, lamps, fire, anything lit past white. auto follows the lighting's quality in use (none at low, so the weakest phones never pay for it); low, medium and high draw it softer or finer whatever the device.One of off, auto, low, medium, high; starts at offSetting
- bloom_strength_pctHow strong the bloom is.Number, 0 to 400, starts at 100Setting
- bloom_threshold_pctHow bright something must be before it blooms, against white lit by the sun: at 150 the sun, lamps and anything given an emissive colour past white bloom, and sunlit walls don't; lower makes more things bloom.Number, 0 to 2000, starts at 150Setting
- bloom_spread_pctHow far the bloom spreads round what shines: low keeps it tight, high makes a wide haze.Number, 0 to 100, starts at 60Setting
- grading_moodThe colour grading's mood, over the whole picture: vivid is richer colour, warm golden, cool blue, faded soft and washed, moody dark teal and orange, noir black and white, dreamy soft and pink. none grades nothing. It costs the same on every device.One of none, vivid, warm, cool, faded, moody, noir, dreamy; starts at noneSetting
- grading_strength_pctHow much of the mood shows: 0 is the picture as it is, 100 the mood whole.Number, 0 to 100, starts at 100Setting
- sun_rays_levelRays of light streaming from the sun past trees, buildings and characters while it's up and in view. auto follows the lighting's quality in use (none at low); low, medium and high draw them coarser or finer whatever the device.One of off, auto, low, medium, high; starts at offSetting
- sun_rays_strength_pctHow strong the sun rays are.Number, 0 to 400, starts at 100Setting
- corner_shade_levelSoft shade where surfaces meet: corners, creases, under things, round feet. Drawn on PCs only, never on phones and tablets. auto draws it while the lighting's quality in use is high; low, medium and high draw it rougher or smoother.One of off, auto, low, medium, high; starts at offSetting
- corner_shade_strength_pctHow dark the shade in corners is.Number, 0 to 300, starts at 100Setting
- corner_shade_radius_mHow far the shade reaches out of a corner, in metres: small for a character's details, large for a building's.Number, 0.05 to 10, starts at 0.8Setting
- before_gradeAsked whenever the mood changes, with its grade: { saturationPct, contrastPct, brightnessPct, warmthPct, tintPct, vignettePct, shadowColor, highlightColor }, colours as "#rrggbb". Answer a grade with any of them changed (a game's own mood: a storm's grey, a dream's haze), or nothing to leave it.Decision
- levels_changedTold when an effect's level in use changes, with { bloomLevel, sunRaysLevel, cornerShadeLevel, reason }: each off, low, medium or high; reason is setting, or lighting_quality when the lighting's quality in use moved (auto stepping down on slow frames).Event
None.
More extensions
Versions
- 1.0.0Nov 29, 2026 · 7 files · 57 KBNewest
No version has passed its checks yet.




