Light

class guerilla.Light

Bases: guerilla.TargetPrimitive

A class for lights, in realtime and rendering

SizeX

Light width in local space (for Square, Disc and Sphere lights)

Type:types.float{}
SizeY

Light height in local space (for Square and Disc lights)

Type:types.float{}
createref(parent, name, filename)

Create a LightRef to a glight file

Parameters:
  • parent (Node) – The parent to create the LightRef in
  • name (str) – The name of the LightRef
  • filename (str) – The path to the referenced Light
Returns:

The created reference

Return type:

ref