MaterialPartParameters

Description

abstract class Tinman.Engine.Rendering.Effects.Shared.MaterialPartParameters<T val>

Derived from

RenderEffectParameters abstract

Shared render effect parameters for MaterialPart objects.

Public / Constants

Changed​Channel


public constant ChangedChannel → (1 << 0:int64)

Changed flag for Channel.

Changed​Coords


public constant ChangedCoords → (1 << 1:int64)

Changed flag for Coords.

Changed​Map


public constant ChangedMap → (1 << 2:int64)

Changed flag for Map.

Changed​Value


public constant ChangedValue → (1 << 3:int64)

Changed flag for Value.

Public / Methods

Set

2 overloads


public method Set1 → (1)

other in : MaterialPartParameters<T>

The material part parameters to copy.

Copies all parameter values from the given object to this one.


public method Set2 → (4)

cache in : IResourceCache

[not-null]
The resource cache to use.

part in : MaterialPart<T>

[not-null]
The model part.

replacement in : IModelTexture

The model texture replacement to use.

value in : bool

Set Value?

Sets Coords, Map and Value.

Public / Attributes

Channel


public attribute Channel → (get,set)

value : int32

The texture channel (RGBA) in the range [0..3].

The texture channel to use.

Coords


public attribute Coords → (get,set)

value : int32

The coordinate set index.

The texture coordinate set index.

Map


public attribute Map → (get,set)

value : ITexture2D

The texture map.

The texture map.

Value


public attribute Value → (get,set)

value : T

The material part value.

Protected / Methods

Value​Equals


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​Set


protected abstract method ValueSet → (3)

effect in : IRenderEffectParameters

The effect to apply the value to.

slot in : int32

The effect parameter slot.

value in : T

The value to apply.

Applies the given value.