Render
state
wrapper
for
Tinman.TextureAtlas.inc
.
sealed class
|
TexturingBatchState
|
See also:
TexturingBatchCreates 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
|
|
The texture tile state object. |
Remarks:
These are the default shader parameter names:
'terrainBlend0'
->Blend0'terrainBlend1'
->Blend1'terrainBlendTime'
->TileFadeFactorCreates 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 .
|
Applies the given texture batch state.
public
method
|
Apply
(TexturingBatch batch)
|
||
params
|
batch
|
The texture batch. |
Remarks:
This method does not call ApplyChanges.