class documentation
class AmbientLight(Light): (source)
Constructor: AmbientLight(name, intensity, color, visible, ...)
Represents an ambient light.
This light globally illuminates all objects in the scene equally.
Parameters | |
name | the name of the light |
intensity | the intensity of the light in the range [0, 1] |
color | the color of the light |
visible | default visibility of the object in the scene |
position | the position of the light in object space |
quaternion | the quaternion of the light in object space |
scale | the scale of the light in object space |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Inherited from Light
:
Method | _to |
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 |
Converts the object to a dict. |
Method | clear |
Remove all children from this object. |
Method | local |
Undocumented |
Method | position |
Undocumented |
Method | quaternion |
Undocumented |
Method | rotation |
Undocumented |
Method | scale |
Undocumented |
Method | traverse |
Traverse the scene graph. |
Instance Variable | children |
Undocumented |
Property | local |
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 |
Creates an Object3D (or its subclass) from a dict. |
Method | _get |
Get asset paths for this node |
Method | _update |
Undocumented |
Class Variable | _asset |
Undocumented |
Instance Variable | _local |
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
= 'AmbientLight', intensity: float
= 0.1, color: str
= COLOR_DEFAULT_WHITE, visible=True, position: Vec3UnionType | None
= None, scale: Vec3UnionType | None
= None, quaternion: Quaternion | None
= None):
(source)
¶
Undocumented