Package limn.render3d
Record Class Material.SimpleLit
java.lang.Object
java.lang.Record
limn.render3d.Material.SimpleLit
- All Implemented Interfaces:
Material
- Enclosing interface:
Material
Lambert diffuse from the pass's single directional light, over a base color.
-
Nested Class Summary
Nested classes/interfaces inherited from interface limn.render3d.Material
Material.NormalMap, Material.Pbr, Material.Raw, Material.SimpleLit, Material.Surface, Material.Unlit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Material.SimpleLitof(float r, float g, float b) A flat-lit material of the given sRGB colour.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleLit
Creates an instance of aSimpleLitrecord class.- Parameters:
baseColor- the value for thebaseColorrecord component
-
-
Method Details
-
of
A flat-lit material of the given sRGB colour. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
baseColor
Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-