Create, Compete & Win at Redbrick Connect 2024! 🎉

Scene

This class corresponds to a space where you can place 3D objects, lights, cameras, and other elements.

The Scene also inherits from Object3D, so in addition to the properties and functions described below, you can also use the properties and functions that exist in THREE.Object3D and THREE.Object3D.Scene.

Properties

.background

.background : Object

Defines the background of the scene. Default is null. Valid inputs are:

  • A Color for defining a uniform colored background.

  • A Texture for defining a (flat) textured background.

  • Texture cubes (CubeTexture) or equirectangular textures for defining a skybox.

.fog

.fog : Fog

A fog instance defining the type of fog that affects everything rendered in the scene. Default is null.