Scene
new Scene()THREE equivalent: THREE.Scene
Root container for all visible objects, lights, and fog. Pass to Renderer.render() along with a camera.
Differs from THREE.js
No environment maps. Texture backgrounds are nearest-neighbour screen fills, not skyboxes or reflections. When fog is set, its color overrides background.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
background |
Color|number|Texture|undefined |
Background clear color or screen-space texture. Accepts a Color instance, hex number, or Texture. Overridden by fog color when fog is set. |
fog |
Fog|undefined |
Scene-level fog. Set to a Fog instance to enable linear depth fog. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
clone(): Scene |
Returns a deep copy of the scene including its subtree. |