Scene#

Determines an overall orientation of the scene. It consists of an offset, an orientation, and scale; all of which is included in the projection matrix that is passed to the rendering function callback of the specific application. This can be used to customize the rendering for a specific rendering window. A common use-case in planetariums, for example, is to account for a tilt in the display system by providing an orientation aligning with the planetarium surface. This makes it possible to reuse the same application between the planetarium dome and fixed setups without the need for special care.

  • offset (optional)
    vec3

    A linear offset of the scene center. Must define three float attributes x, y, and z. The default values are x=0, y=0, z=0, which means that no offset is applied to the center of the scene.

  • orientation (optional)
    orientation

    Describes a fixed orientation of the global scene.

  • scale (optional)
    number

    A scaling factor for the entire scene. The default value is 1.0.