MaterialPartBase

Description

abstract class Tinman.Engine.Models.MaterialPartBase

Derived from

IMaterialPartBase

Extended by

MaterialPart abstract

Non-generic base class of MaterialPart that provides read-write access.

Public / Methods

Clear


public abstract method Clear → ()

Clears all material part properties to their default values.

Public / Attributes

Channel


public attribute Channel → (get,set)

value : int32

The texture channel to use:
0 : red
1 : green
2 : blue
3 : alpha
Will be -1 iff this is a multi-channel material part.

The texture channel to use for single-channel material parts.

This property is ignored for the multi-channel material parts: IMaterial.BaseColor, IMaterial.Emissive, IMaterial.Normal, IMaterial.Reflectivity and IMaterial.Translucency. Defaults to 0, i.e. the red channel.

Flags


public attribute Flags → (get,set)

value : MaterialFlags

The material texture flags.

The texture flags of this material part.

Defaults to MaterialFlags.None.

Map


public attribute Map → (get,set)

value : IModelTexture

The model texture or null.

The texture map of this material part.

Defaults to null.

Protected / Attributes

channel


protected attribute channel → (int32)

The current value of Channel.

flags


protected attribute flags → (MaterialFlags)

The current value of Flags.

hash​Code


protected attribute hashCode → (int32)

The pre-computed hash code.

map


protected attribute map → (IModelTexture)

The current value of Map.