DecalFace

Description

struct Tinman.Terrain.Meshing.DecalFace

Texture coordinate mapping for a decal texture on a cubemap face.

DecalFace values have the following natural sort order:

  1. Decal (ascending)

Public / Attributes

Decal


public readonly attribute Decal → (int32)

Index of current decal.

See also

Decaling.Decals

Offset


public readonly attribute Offset → (Vec4F)

Texturing coefficient: offset

This value must be used in the same way as described here: TextureTile.

U


public readonly attribute U → (Vec3F)

Texturing coefficient: u

This value must be used in the same way as described here: TextureTile.

See also

TextureTile.U

V


public readonly attribute V → (Vec3F)

Texturing coefficient: v

This value must be used in the same way as described here: TextureTile.

See also

TextureTile.V

Warp


public readonly attribute Warp → (Mat3F)

A 2D homogeneous warp matrix to apply to the input texture coordinates in order to get local decal coordinates for rendering.

After the texture coordinates have been computed using Offset, U and V, they must be multiplied with this matrix (using 1 as the Vec3F.Z coordinate), followed by a homogeneous divide.

See also

Mat3F.Mul21