( intensity: float = 1.0 color: typing.Optional[typing.List[float]] = None range: typing.Optional[float] = None inner_cone_angle: typing.Union[float, numpy.ndarray] = 0.0 outer_cone_angle: typing.Union[float, numpy.ndarray] = 45.0 light_type: str = 'directional' name: typing.Optional[str] = None position: typing.Optional[typing.List[float]] = None rotation: typing.Optional[typing.List[float]] = None scaling: typing.Union[float, typing.List[float], NoneType] = None is_actor: bool = False parent: typing.Optional[ForwardRef('Asset')] = None children: typing.Optional[typing.List[ForwardRef('Asset')]] = None )
Parameters
float
, optional, defaults to 1.0
) —
The intensity of the light.
List[float]
, optional, defaults to [1.0, 1.0, 1.0]
) —
The color of the light.
float
, optional, defaults to None
) —
The range of the light.
float
or np.ndarray
, optional, defaults to 0.0
) —
The inner cone angle of the light.
float
or np.ndarray
, optional, defaults to 45.0
) —
The outer cone angle of the light.
str
, optional, defaults to "directional"
) —
The type of the light. 2 types of punctual lights are implemented:"directional"
: an infinitely distant point source"positional"
: point sources located in the real-world.
A cone angle can be defined to limit the spatial distribution of a positional light beam in which case
these are often known as spotlight. a Value of None or above 90 degree means no spatial limitation.str
, optional, defaults to None
) —
The name of the light.
List[float]
, optional, defaults to [0.0, 0.0, 0.0]
) —
The position of the light.
List[float]
, optional, defaults to [0.0, 0.0, 0.0]
) —
The rotation of the light.
float
or List[float]
, optional, defaults to 1.0
) —
The scaling of the light.
bool
, optional, defaults to False
) —
Whether the light is an actor.
Asset
, optional, defaults to None
) —
The parent of the light.
List[Asset]
, optional, defaults to None
) —
The children of the light.
A Scene Light. Punctual lights are defined as infinitely small points that emit light in well-defined directions and intensities. Angles are in degrees.
(
with_children: bool = True
**kwargs: typing.Any
)
→
copy (Light
)
Make a copy of the Asset.
Under construction 🚧.