Technical manual
...
Spatial module
Rendering scenes
1 min
the renderercomponent defines the parameters for rendering a scene to render target (such as an html canvas or webxr layer) scenes are simply defined as entity hierarchies the scenecomponent is used to specify which scene entities to render only the root of an entity hierarchy needs to be specified once an entity has both of these components, only a cameracomponent is needed to actually render a scene the camera provides a perspective from which to render the scene the cameracomponent specifies an arraycamera, which allows rendering one or more perspectives simultaneously upon the webglrenderersystem running, it will aggregate the list of entities to render, and get the underlying objects from the groupcomponent into a flat list this list is iterated, and pulls out a few extra parameters the environmentmapcomponent specifies the environment map to use for meshes that do not have an environment map already specified the backgroundcomponent specifies the skybox to render, either a color, a texture, or a cubetexture the fogcomponent specifies the fog parameters to use