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

Changed​Tile


public constant ChangedTile → (1:int32)

Changed flag for Tile.

Changed​Tile​Base


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

Changed flag for TileBase.

Changed​Tile​Blend0


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

Changed flag for TileBlend0.

Changed​Tile​Blend1


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

Changed flag for TileBlend1.

Changed​Tile​Blend​Factor


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

Changed flag for TileBlendFactor.

Flag​Atlas​Mask


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[.

Flag​No​Texture​Array


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

Texturing​Batch​Parameters


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

Tile​Base


public readonly attribute TileBase → (TextureTileParameters)

Tile​Blend0


public attribute TileBlend0 → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

Tile​Blend1


public attribute TileBlend1 → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

Tile​Blend​Factor


public attribute TileBlendFactor → (get,set)

value : float32

The parameter value.

Defaults to 0.