Configuration
Description
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
NEAR_AT_ZERO
Depicts the value range of the Z-component of normalized device coordinates (NDC):
true
: [0 .. 1]
false
: [-1 .. +1]
TERRAIN_MATERIAL_COUNT
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
Enables debug mode for a tri-planar material texture.
The following debug codes are supported:
0 : disable 1 : planarX 2 : planarY 3 : planarZ
TERRAIN_TEXTURE_COUNT
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.