class documentation

Represents a point light.

Parameters
namethe name of the light
distancethe distance at which the light's intensity is zero
decaythe amount the light dims along the distance of the light
colorthe color of the light
intensitythe intensity of the light in the range [0, 1]
visibledefault visibility of the object in the scene
positionthe position of the light in object space
quaternionthe quaternion of the light in object space
scalethe scale of the light in object space
Method __init__ Undocumented
Method __repr__ Undocumented
Instance Variable decay Undocumented
Instance Variable distance Undocumented
Method _to_dict_extra Returns the extra data to include in the dict representation.

Inherited from Object3D (via Light):

Method __eq__ Undocumented
Method __iter__ Undocumented
Method __str__ Undocumented
Method add Add one or more objects as children of this one.
Method as_dict Converts the object to a dict.
Method clear Remove all children from this object.
Method local_transform_matrix.setter Undocumented
Method position.setter Undocumented
Method quaternion.setter Undocumented
Method rotation.setter Undocumented
Method scale.setter Undocumented
Method traverse Traverse the scene graph.
Instance Variable children Undocumented
Property local_transform_matrix The local transform matrix of the object.
Property rotation The rotation of the object in object space.
Property uuid The unique ID of the object.
Static Method _from_dict Creates an Object3D (or its subclass) from a dict.
Method _get_asset_paths Get asset paths for this node
Method _update_matrix Undocumented
Class Variable _asset_path_fields Undocumented
Instance Variable _local_transform_matrix Undocumented
Instance Variable _position Undocumented
Instance Variable _quaternion Undocumented
Instance Variable _rotation Undocumented
Instance Variable _scale Undocumented
Instance Variable _uuid Undocumented
def __init__(self, name: str = 'PointLight', distance: float = 0.0, decay: float = 2.0, color: str = COLOR_DEFAULT_WHITE, intensity: float = 1.0, visible=True, position: Vec3UnionType | None = None, scale: Vec3UnionType | None = None, quaternion: Quaternion | None = None): (source)
decay: 2.0 = (source)

Undocumented

distance: 0.0 = (source)

Undocumented

def _to_dict_extra(self): (source)

Returns the extra data to include in the dict representation.