pygfx.objects.Scene
- class pygfx.objects.Scene(environment=None, *args, **kwargs)
Bases:
GroupRoot of the scene graph.
The scene holds scene-level information (background color, fog, environment map) as well as all objects that take part in the rendering process as either direct or indirect children/nested objects.
- Parameters:
environment (Texture | TextureMap) – The environment map for all physical materials in the scene. However, it’s not possible to overwrite an existing map assigned to individual materials. Default is None.
- property environment
The environment map for all physical materials in the scene. If a material has its own environment map set, it will override the scene’s environment map.