pygfx.objects.Background¶
- class pygfx.objects.Background(geometry=None, material=None, **kwargs)¶
Bases:
WorldObjectThe scene’s background.
Can be e.g. a gradient, a static image or a skybox.
- Parameters:
geometry (Geometry) – Must be
None. Exists for compliance with the generic WorldObject API.material (Material) – The material to use when rendering the background.
kwargs (Any) – Additional kwargs are forwarded to the object’s
base class.
Examples