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

class TexturingBatchState in Tinman.AddOns.Shaders

Render state wrapper for Tinman.TextureAtlas.inc.

sealed class TexturingBatchState  

See also:

TexturingBatch

Public / Constructors

Default

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

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

Remarks:

These are the default shader parameter names:

TexturingBatchState

Creates a new instance of TextureTileState.

public constructor TexturingBatchState (IShaderEffect effect, TextureTileState textureBase, TextureTileState texture, string blend0, string blend1, string blendTime = null)
params effect [not-null] The shader effect.
  textureBase [not-null] The helper for applying the base texture state.
  texture [not-null] The helper for applying the texture state.
  blend0 [not-null] Name of shader parameter that will be set to Blend0.
  blend1 [not-null] Name of shader parameter that will be set to Blend1.
  blendTime Name of shader parameter that will be set to TileFadeFactor or null. Defaults to null.

Public / Methods

Apply

Applies the given texture batch state.

public method Apply (TexturingBatch batch)
params batch The texture batch.

Remarks:

This method does not call ApplyChanges.