Configuration

Description

[Configuration]
static class Tinman.Engine.Shaders.Configuration

Full source code is included in the Tinman 3D SDK download.

The compile-time configuration values of the shaders in the Tinman 3D SDK.

Public / Constants

CUBEMAP_­SEAMLESS


public static readonly attribute CUBEMAP_SEAMLESS → (bool)

Is seamless cubemap filtering supported?

NEAR_­AT_­ZERO


public static readonly attribute NEAR_AT_ZERO → (bool)

Depicts the value range of the Z-component of normalized device coordinates (NDC):
true : [0 .. 1]
false : [-1 .. +1]

PIXEL_­OFFSET


public constant PIXEL_OFFSET → (0:float32)

The offset from viewport coordinates (0,0) to the center of the corresponding pixel.

TERRAIN_­MATERIAL_­COUNT


public constant TERRAIN_MATERIAL_COUNT → (4:int32)

Number of terrain materials to use in one pass (either 3 or 4).

Arrays using this length may be indexed as follows:

array[material] := element for material
- or -
array[material * 4 + 0] := element for material texture AR (H)
array[material * 4 + 1] := element for material texture NOR (H)
array[material * 4 + 2] := element for material texture AR (V)
array[material * 4 + 3] := element for material texture NOR (V)

where material is the zero-based material index.

TERRAIN_­MATERIAL_­DEBUG


public static readonly attribute TERRAIN_MATERIAL_DEBUG → (int32)

Enables debug mode for a tri-planar material texture.

The following debug codes are supported:

0 : disable
1 : planarX
2 : planarY
3 : planarZ

TERRAIN_­MATERIAL_­DISPLACEMENT


public static readonly attribute TERRAIN_MATERIAL_DISPLACEMENT → (bool)

Use displacement mapping for terrain?

TERRAIN_­TEXTURE_­ARRAYS


public static readonly attribute TERRAIN_TEXTURE_ARRAYS → (bool)

Are texture arrays available?

TERRAIN_­TEXTURE_­COUNT


public constant TERRAIN_TEXTURE_COUNT → (5:int32)

The number of terrain textures.

Arrays using this length may be indexed as follows:

array[atlas]         := element for texture atlas
- or -
array[atlas * 2 + 0] := element for base tile of texture atlas
array[atlas * 2 + 1] := element for tile of texture atlas

where atlas is the zero-based texture atlas index.

THICK_­LINES


public constant THICK_LINES → (true:bool)

Enable rendering of thick lines?