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

class DecalFaceState in Tinman.AddOns.Rendering

sealed class DecalFaceState  

Public / Constructors

DecalFaceState

Creates a new instance of DecalFaceState.

public constructor DecalFaceState (IShaderEffect effect, string decalU, string decalV, string decalOffset, string decalWarp)
params effect [not-null] The shader effect.
  decalU [not-null] Name of shader parameter that will be set to U.
  decalV [not-null] Name of shader parameter that will be set to V.
  decalOffset [not-null] Name of shader parameter that will be set to Offset.
  decalWarp [not-null] Name of shader parameter that will be set to Warp.

Default

Creates a new instance of DecalFaceState using default names for the shader parameters.

public static method Default (IShaderEffect effect)
type DecalFaceState
params effect [not-null] The shader effect.
returns [not-null] The texture tile state object.

Remarks:

These are the default shader parameter names:

Public / Methods

Apply

Applies the given decal state.

public method Apply (DecalFace batch)
params batch The decal batch.

Remarks:

This method does not call ApplyChanges.