DecalParameters

Description

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

Derived from

RenderEffectParameters abstract

Shared render effect parameters for terrain decal rendering.

The following low-level render effect parameter slots are always defined:

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

Public / Constants

Changed​Clip


public constant ChangedClip → (1 << 0:int32)

Changed flag for Clip.

Changed​Color


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

Changed flag for Color.

Changed​Offset


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

Changed flag for Offset.

Changed​Slices


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

Changed flag for Slices.

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.

Changed​Warp


public constant ChangedWarp → (1 << 7:int32)

Changed flag for Warp.

Changed​Weights


public constant ChangedWeights → (1 << 8:int32)

Changed flag for Weights.

Flag​No​Texture​Array


public constant FlagNoTextureArray → (1:int32)

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

Public / Constructors

Decal​Parameters


public constructor DecalParameters → ()

Creates a new instance of DecalParameters.

Public / Methods

Set


public method Set → (1)

decal in : DecalFace

The decal face batch.

Sets parameter values according to the given texture decal in.

The following parameters are set:

Public / Attributes

Clip


public attribute Clip → (get,set)

value : Vec4F

The texture clip offsets.

The decal texture clip rectangle (see IDecal.TextureClip).

Defaults to Vec4F.Zero.

Color


public attribute Color → (get,set)

value : int64

The color, see Colors.

The modulation color for decal texture map.

Defaults to 0.

Offset


public attribute Offset → (get,set)

value : Vec4F

The coefficient vector.

Decal warp coefficient, see DecalFace.Offset.

Defaults to Vec4F.Zero.

Slices


public attribute Slices → (get,set)

value : Vec4I

The slice indices.

The texture slice indices to use.

Texture


public attribute Texture → (get,set)

value : ITexture2D

The texture.

The decal texture.

Defaults to null.

U


public attribute U → (get,set)

value : Vec3F

The coefficient vector.

Decal warp coefficient, see DecalFace.U.

Defaults to Vec3F.Zero.

V


public attribute V → (get,set)

value : Vec3F

The coefficient vector.

Decal warp coefficient, see DecalFace.V.

Defaults to Vec3F.Zero.

Warp


public attribute Warp → (get,set)

value : Mat3F

The matrix.

Decal warp matrix, see DecalFace.Warp.

Defaults to Mat3F.Zero.

Weights


public attribute Weights → (get,set)

value : Vec4F

The slice weights.

The texture slice weights to use.