pygfx.helpers.PointLightHelper

class pygfx.helpers.PointLightHelper(size=1, geometry=None, color=None)

Bases: Mesh

Light source indicator for point lights.

Helper class to visualize a point light using some geometry (sphere by default). The helper object should be a parent of the light object.

Parameters:
  • size (float) – If geometry is None, the size of the indicator. Ignored otherwise.

  • geometry (Geometry) – The geometry used to visualize the location of the light source. If None, a sphere will be used.

  • color (Color) – The color of the sphere. If None, match the color of the light.