Light constructor
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.
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.
Implementation
Light({
required this.transform,
required this.source,
}) : super(null);