Light class

Constructors

Light({Vector3? position, Color? color, double ambient = 0.1, double diffuse = 0.8, double specular = 0.5})

Properties

ambient → Vector3
final
diffuse → Vector3
final
hashCode int
The hash code for this object.
no setterinherited
position → Vector3
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
specular → Vector3
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColor(Color? color, double ambient, double diffuse, double specular) → void
shading(Vector3 viewPosition, Vector3 fragmentPosition, Vector3 normal, Material material) Color
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited