TextureTileParameters

Description

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

Derived from

RenderEffectParameters abstract

Shared render effect parameters for TextureTile.

The following low-level render effect parameter slots are always defined (N := terrain slot count, as passed to constructor):

The following low-level render effect parameter slots are omitted if FlagNoTextureArray is present:

Public / Constants

Changed​Bounds


public constant ChangedBounds → (1:int32)

Changed flag for Bounds.

Changed​Gamma


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

Changed flag for Gamma.

Changed​Offset


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

Changed flag for Offset.

Changed​Slice


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

Changed flag for Slice.

Changed​Texture


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

Changed flag for Texture.

Changed​U


public constant ChangedU → (1 << 5:int32)

Changed flag for U.

Changed​V


public constant ChangedV → (1 << 6:int32)

Changed flag for V.

Flag​Index​Mask


public constant FlagIndexMask → (15:int32)

Bitmask for extracting the parameter slot element index from the flags that have been passed to RenderEffectParameters.Declare.

Parameter slot element indices must be in the range [0..16[.

Flag​No​Texture​Array


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

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

Public / Constructors

Texture​Tile​Parameters


public constructor TextureTileParameters → (1)

terrainSlotCount opt : int32 = TerrainSlotMapping.SlotCount

[1..16]
The terrain texture slot count.

Creates a new instance of TextureTileParameters.

Public / Methods

Set


public method Set → (1)

tile in : TextureTile

The texture tile.

Sets parameter values according to the given texture tile in.

The following parameters are set:

Public / Attributes

Bounds


public attribute Bounds → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

Gamma


public attribute Gamma → (get,set)

value : float32

The parameter value.

Defaults to 1.

Offset


public attribute Offset → (get,set)

value : Vec4F

The parameter value.

Defaults to Vec4F.Zero.

Slice


public attribute Slice → (get,set)

value : int32

The parameter value.

Defaults to 0.

Texture


public attribute Texture → (get,set)

value : ITexture2D

The parameter value.

Defaults to null.

U


public attribute U → (get,set)

value : Vec3F

The parameter value.

Defaults to Vec3F.Zero.

V


public attribute V → (get,set)

value : Vec3F

The parameter value.

Defaults to Vec3F.Zero.