pygfx.materials.PointsSpriteMaterial

class pygfx.materials.PointsSpriteMaterial(*, sprite=None, **kwargs)

Bases: PointsMaterial

A material to render points as sprite images.

Renders the provided texture at each point position. The images are square and sized just like with a PointMaterial. The texture color is multiplied with the point’s “normal” color (as calculated depending on color_mode).

The sprite texture is provided via .sprite.

property sprite

The texture map specifying the sprite image.

The dimensionality of the map must be 2D. If None, it just shows a uniform color.