Light class
A Resource that represents a light source that is positioned in the scene and changes how other objects are rendered.
This class isn't a true resource, it does not upload it self to the GPU. Instead, it is used to modify how other resources are uploaded.
Constructors
- Light({required Transform3D transform, required LightSource source})
- A Resource that represents a light source that is positioned in the scene and changes how other objects are rendered.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- resource ↔ void
-
The resource data.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → LightSource
-
final
- transform → Transform3D
-
final
Methods
-
apply(
int index, Shader shader) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited