TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class MaterialState in Tinman.AddOns.Shaders

Render state wrapper for Tinman.Material.inc.

sealed class MaterialState  

Public / Attributes

HasMaterialTextureDisplacement

public property HasMaterialTextureDisplacement { get }
type bool
value

MaterialD

public readonly field MaterialD
type IShaderParameter

MaterialIds

public readonly field MaterialIds
type IShaderParameter

MaterialOrigin

public readonly field MaterialOrigin
type IShaderParameter

MaterialOriginExtra

public readonly field MaterialOriginExtra
type IShaderParameter

MaterialS

public readonly field MaterialS
type IShaderParameter

MaterialTextureCount

public property MaterialTextureCount { get }
type int32
value

Public / Constructors

MaterialState

Creates a new instance of MaterialState.

public constructor MaterialState (IShaderEffect effect)
params effect [not-null] The shader effect.

Public / Methods

MaterialTexture

Returns a material texture.

public method MaterialTexture (int32 index, bool horizontal, int32 which)
type IShaderParameter
params index [0..MaterialTextureCount-1] The material texture set.
  horizontal Return horizontal (true) or vertical (false) texture?
  which [0..2] Return one of the following textures:
0: albedo-reflectivity.
1: normal-occlusion-roughness.
2: displacement.
returns The material texture.