File: Scene.md | Updated: 11/15/2025
Scenes allow you to set up what is to be rendered and where by three.js. This is where you place 3D objects like meshes, lines or lights.
Constructs a new scene.
Defines the background of the scene. Valid inputs are:
Default is null.
Sets the blurriness of the background. Only influences environment maps assigned to Scene#background. Valid input is a float between 0 and 1.
Default is 0.
Attenuates the color of the background. Only applies to background textures.
Default is 1.
The rotation of the background in radians. Only influences environment maps assigned to Scene#background.
Default is (0,0,0).
Sets the environment map for all physical materials in the scene. However, it's not possible to overwrite an existing texture assigned to the envMap material property.
Default is null.
Attenuates the color of the environment. Only influences environment maps assigned to Scene#environment.
Default is 1.
The rotation of the environment map in radians. Only influences physical materials in the scene when Scene#environment is used.
Default is (0,0,0).
A fog instance defining the type of fog that affects everything rendered in the scene.
Default is null.
This flag can be used for type testing.
Default is true.
Forces everything in the scene to be rendered with the defined material. It is possible to exclude materials from override by setting Material#allowOverride to false.
Default is null.