Capítulo 12 de 859
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.
Constructor
| Signature |
|---|
new Scene() |
Properties
| Property | Description |
|---|---|
| `.background : Color | Texture` |
.backgroundBlurriness : number | Sets the blurriness of the background. Only influences environment maps assigned to Scene#background. Valid input is a float between 0 and 1. |
.backgroundIntensity : number | Attenuates the color of the background. Only applies to background textures. |
.backgroundRotation : Euler | The rotation of the background in radians. Only influences environment maps assigned to Scene#background. |
.environment : Texture | 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. |
.environmentIntensity : number | Attenuates the color of the environment. Only influences environment maps assigned to Scene#environment. |
.environmentRotation : Euler | The rotation of the environment map in radians. Only influences physical materials in the scene when Scene#environment is used. |
| `.fog : Fog | FogExp2` |
.isScene : boolean (readonly) | This flag can be used for type testing. |
.overrideMaterial : Material | 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. |