跳到正文
cccskills
免费在 GitHub 公开

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when adding visual effects to a PlayCanvas app, to choose between particle systems, shader chunks, runtime meshes, and post-processing.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

Use when writing PlayCanvas Engine code touching transforms, cameras, lights, materials, meshes, bounds, or imports, to apply Engine conventions and avoid legacy APIs.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

Use when composing PlayCanvas entity hierarchies from models, colliders, rigid bodies, and scripts, so each object has one semantic root and clear lifecycle.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

Use when static PlayCanvas lighting, shadows, or ambient occlusion cost too much per frame and should be baked into lightmaps.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

build-app

免费

Use when creating or restructuring a PlayCanvas app with the Engine API, @playcanvas/react, or @playcanvas/web-components, covering bootstrap, input, resize, physics, update loop, UI, and lifecycle.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

Use before repeatedly placing GLB models in PlayCanvas to record each asset's uniform scale, grounding offset, pivot compensation, and yaw once.

中文简介正在准备中。当前显示原文说明。

playcanvas/skills282026年10月13日 更新

查看 playcanvas 的全部技能

报告此技能的问题