TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct DecalFace in Tinman.Terrain.Meshing

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

struct DecalFace  

Public / Attributes

Decal

Index of current decal.

public readonly field Decal
type int32

See also:

Decaling.Decals

Offset

Texturing coefficient: offset

public readonly field Offset
type Vec4F

Remarks:

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

See also:

TextureTile.Offset

U

Texturing coefficient: u

public readonly field U
type Vec3F

Remarks:

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

See also:

TextureTile.U

V

Texturing coefficient: v

public readonly field V
type Vec3F

Remarks:

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

See also:

TextureTile.V

Warp

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

public readonly field Warp
type Mat3F

Remarks:

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

See also:

Mat3F.Mul2