threejs-scenes
>-
>-
ALWAYS use this skill when the user mentions:
Scene as root, scene.background, environment or skyball setup at scene levelFog or FogExp2 parameters (near, far, color, density) and interaction with camera far planeIMPORTANT: scenes vs textures vs loaders
| Concern | Skill | |---------|--------| | Scene + fog API | threejs-scenes | | Texture sampling, PMREM generator usage | threejs-textures | | Fetching HDR/glTF | threejs-loaders |
Trigger phrases include:
Scene and add lights/meshes/cameras as children per graph rules (threejs-objects).Fog vs exponential FogExp2 for outdoor/horizon feel.near/far alongside camera far to avoid clipping artifacts.scene.background to Color, Texture, or cube map per docs; env lighting still needs matching renderer/material settings.See examples/workflow-fog-background.md.
| Docs section | Representative links | |--------------|----------------------| | Scenes | https://threejs.org/docs/#Scenes | | Scenes | https://threejs.org/docs/Scene.html | | Fog | https://threejs.org/docs/Fog.html | | FogExp2 | https://threejs.org/docs/FogExp2.html |
Scene, fog types, background field semantics at API level.Fog; custom atmospheric scattering shaders beyond core fog API.far on camera with fog still needs scene scale consistency.background rotation/intensity features depend on renderer version—cite current docs.Scene, Fog, and background fields are documented under Scenes in three.js docs. Environment-related visuals often combine this skill with threejs-textures (PMREM) and threejs-loaders (HDR files)—link those pages when the user moves from “fog color” to “HDR sky”.
When answering under this skill, prefer responses that:
Scene, Fog, or FogExp2 official pages.far plane and world scale.English: scene, fog, fogexp2, background, environment, three.js
中文: 场景、雾、Fog、背景、环境、three.js
确保开发环境已安装必要的依赖和工具。
根据项目需求进行基础配置。
按照示例代码实现核心功能。
运行测试确保功能正常。
完成开发后进行部署和监控。