Package limn.render3d
Record Class Material.Unlit
java.lang.Object
java.lang.Record
limn.render3d.Material.Unlit
- All Implemented Interfaces:
Material
- Enclosing interface:
Material
A flat/vertex color, unaffected by lights.
-
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 TypeMethodDescriptionblend()Returns the value of theblendrecord component.nullrestores opaque.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Material.Unlitof(float r, float g, float b) An opaque flat color.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Unlit
Creates an instance of aUnlitrecord class.- Parameters:
color- the value for thecolorrecord componentblend- the value for theblendrecord component
-
-
Method Details
-
of
An opaque flat color. -
blend
nullrestores opaque. -
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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
blend
Returns the value of theblendrecord component.
-