MaterialPart

Description

abstract class Tinman.Engine.Models.MaterialPart<T val>

Derived from

IMaterialPart

Represents a material part, for example base color or roughness.

Public / Methods

Clear

2 overloads


public method Clear2 → (1)

value in : T

The default value to set to Value.

Clears all material part properties to their default values.

Set


public method Set → (1)

other in : MaterialPart<T>

[not-null]
The material part from which to copy the values.

Copies all material parts values from the given part to this one.

Public / Attributes

Default​Value


public attribute DefaultValue → (get)

value : T

The default value.

The default value of Value.

Value


public attribute Value → (get,set)

value : T

The factor value.

The base value of this material part.

Protected / Methods

Value​Clamp


[Pure]
protected abstract method ValueClamp → (1)

value in : T

The value.

returns → T

The clamped value.

Clamps the given value to the valid range.

Value​Equals


[Pure]
protected abstract method ValueEquals → (2)

valueA in : T

The first value.

valueB in : T

The second value.

returns → bool

true if the values are equal,
false if they are not.

Compares the given values for equality.

Value​Hash​Code


[Pure]
protected abstract method ValueHashCode → (1)

value in : T

The value.

returns → int32

The hash code.

Computes the hash code of the given value.