pygfx.materials.BackgroundImageMaterial
- class pygfx.materials.BackgroundImageMaterial(map=None, **kwargs)
Bases:
BackgroundMaterial
Image/Skybox background.
A background material that displays an image. If map is a 2D texture view, it is used as a static background. If it is a cube texture view, (on a NxMx6 texture) it is used as a skybox.
- Parameters:
map (Texture) – If map is a 2D texture, it is used as static background image. If map is a cube texture, it is used as a skybox.
kwargs (Any) – Additional kwargs are passed to the base constructor (
pygfx.materials.Material
).
- property map
The texture map specifying the background image