# Scenes

From the perspective of rendering, the "scene" is actually an organization of several renderers and the lights that provide the environment for these renderers.

In the small game framework, "nodes" are used to associate these renderers, lights, etc., and a world is constructed through translation, rotation, and scaling properties, which is the scene.

# Node

These nodes are hidden under Entity, which is the Transform component, and in the 3D scene, they are Transform3D:

Note that in addition to the position transformation, there is also a Layer parameter above.

The >Layer parameter is used to determine a mask of the node, which will be associated with the camera mentioned later.

# Global rendering configuration

More scene-related concepts will be discussed in the chapters related to Gameplay. Only the important parts for rendering are explained here. The most important part is the rendering configuration part. In the IDE, this part is in the Scene Setting:

There are several important configurations here:

  1. ambientMode: The type of ambient light, which can be selected from skybox, gradient or solid color, see Skybox and Ambient Light for details.
  2. ambientIntensity: ambient light intensity.
  3. skyBox: The material of the sky box, see [Sky Box and Ambient Light] (../lighting/ambient.md) for details.
  4. fog: fog effect, see fog for details.
点击咨询小助手