Skip to content
Skills Library
Programming · Building & coding

light-scene

/light-scene

Use when lighting or rendering a PlayCanvas scene, covering lights, ambient and environment lighting, sky, shadows, tone mapping, exposure, fog, and post-processing.

Repository
skills ↗
Licence
MIT
Last repository change
21.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when lighting or rendering a PlayCanvas scene, covering lights, ambient and environment lighting, sky, shadows, tone mapping, exposure, fog, and post-processing.

Original author description

Use when lighting or rendering a PlayCanvas scene, covering lights, ambient and environment lighting, sky, shadows, tone mapping, exposure, fog, and post-processing.

How it works

  1. Defaults to change
  2. Use what ships
  3. Warning signs
Original SKILL.md headings · 38 lines, 274 words
SKILL.md preview
---
name: light-scene
description: Use when lighting or rendering a PlayCanvas scene, covering lights, ambient and environment lighting, sky, shadows, tone mapping, exposure, fog, and post-processing.
---

# Light and render a scene

Engine defaults give a flat, dark image; change them deliberately. Tune against inspected
screenshots, one class of value at a time.

## Defaults to change

- `scene.ambientLight` is black, so unlit sides render pure black. Light ambient and reflections
  from an environment atlas or skybox, or set an ambient colour.
- Cameras default to `TONEMAP_LINEAR`. Choose `TONEMAP_NEUTRAL`, `TONEMAP_ACES2`, or
  `TONEMAP_FILMIC` (on `cameraFrame.rendering.toneMapping` when using `CameraFrame`), set exposure,
  then balance light intensities to it.
- Shadows are off. Enable `castShadows` on the key light. Directional `shadowDistance` is 40 m, so
  use cascades for large scenes, and `SHADOWUPDATE_THISFRAME` for static shadows. Size resolution to
  the framed subject.
- Lights shine along local -Y (`apply-conventions`).

## Use what ships

- `CameraFrame` handles tone mapping, bloom, SSAO, DOF, vignette, and grading. Call `update()` after
  changes and destroy it with the app. Keep bloom intensity within the documented 0 to 0.1.
- `scene.sky.type` (`SKYTYPE_DOME`, `SKYTYPE_BOX`, `SKYTYPE_INFINITE`) grounds an environment sky.
- The `ProceduralSky` script owns a linked sun light: set the light's base intensity, then tune
  elevation and azimuth on the sky, not the light.
- The `ShadowCatcher` script grounds subjects that have no lit floor.
- Clustered lighting is on by default, so many point and spot lights are cheap.
- Bake static lights with `bake-lighting`; stylize shading with `override-shader-chunks`.

Find each integration's example with `find-examples`.

## Warning signs

- Albedo washing toward white: reduce exposure, sky, and light intensity before darkening
  materials.
- Large areas clipped white or crushed black: rebalance exposure and lights before adding post.
- A fog colour that differs from the sky horizon breaks the horizon line.

Versions

The database has no other skills named light-scene.

Database snapshot: 13.11.2026 · package version 21deaf3b26dc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90bake-lighting
    Use when static PlayCanvas lighting, shadows, or ambient occlusion cost too much per frame and should be baked into lightmaps.
  • 100threejs-lighting
    Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.
  • 100threejs-lighting
    Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.
  • 100threejs-lighting
    Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.
  • 100threejs-lighting
    Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.
  • 100threejs-lighting
    Design and debug Three.js lighting with directional, point, spot, hemisphere, and area lights, shadow maps, image-based lighting, environment maps, light helpers, and performance budgets. Use when lighting a 3D scene, configuring shadows, setting up HDR illumination, matching a…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.