TexturingBatchParameters

Description

sealed class Tinman.Engine.Rendering.Effects.Shared.TexturingBatchParameters

Derived from

RenderEffectParameters abstract

Shared render effect parameters for use with TexturingBatch.

The following low-level render effect parameter slots are always defined (N := TerrainSlotMapping.SlotCount):

Public / Constants

ChangedTile


public constant ChangedTile → (1:int32)

Changed flag for Tile.

ChangedTileBase


public constant ChangedTileBase → (1 << 1:int32)

Changed flag for TileBase.

ChangedTileBlend0


public constant ChangedTileBlend0 → (1 << 2:int32)

Changed flag for TileBlend0.

ChangedTileBlend1


public constant ChangedTileBlend1 → (1 << 3:int32)

Changed flag for TileBlend1.

ChangedTileBlendFactor


public constant ChangedTileBlendFactor → (1 << 4:int32)

Changed flag for TileBlendFactor.

FlagAtlasMask


public constant FlagAtlasMask → (3:int32)

Bitmask for extracting the texture atlas index from the flags that have been passed to RenderEffectParameters.Declare.

Texture atlas indices must be in the range [0..TerrainSlotMapping.SlotCount[.

FlagNoTextureArray


public constant FlagNoTextureArray → (1 << 2:int32)

When present, low-level render effect parameter slots that are related to texture arrays will be omitted.

Public / Constructors

TexturingBatchParameters


public constructor TexturingBatchParameters → ()

Creates a new instance of TexturingBatchParameters.

Public / Methods

Set


public method Set → (1)

batch in : TexturingBatch

The texture batch.

Sets parameter values according to the given texture batch in.

The following parameters are set:

Public / Attributes

TileBase


public readonly attribute TileBase → (TextureTileParameters)

TileBlend0


public attribute TileBlend0 → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

TileBlend1


public attribute TileBlend1 → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

TileBlendFactor


public attribute TileBlendFactor → (get,set)

value : float32

The parameter value.

Defaults to 0.