SR_Terrain

Description

[ShaderResources]
static class Tinman.Shaders.Terrain.SR_Terrain

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

The shader resources for use with DecalParameters, TerrainMaterialParameters and TextureTileParameters.

Public / Constants

Texture​Count


public constant TextureCount → (3:int32)

The number of terrain textures.

Public / Methods

Material_​H_​AR


[Pure]
public static method Material_H_AR → (1)

index in : int32

The material slot index.

returns → int32

The texture index.

Index of horizontal albedo/reflectivity texture in Material for N-th material slot.

Material_​H_​NOR


[Pure]
public static method Material_H_NOR → (1)

index in : int32

The material slot index.

returns → int32

The texture index.

Index of horizontal normal/occlusion/roughness in Material for N-th material slot.

Material_​V_​AR


[Pure]
public static method Material_V_AR → (1)

index in : int32

The material slot index.

returns → int32

The texture index.

Index of vertical albedo/reflectivity texture in Material for N-th material slot.

Material_​V_​NOR


[Pure]
public static method Material_V_NOR → (1)

index in : int32

The material slot index.

returns → int32

The texture index.

Index of vertical normal/occlusion/roughness in Material for N-th material slot.

Texture_​N


[Pure]
public static method Texture_N → (2)

tile in : int32

Base tile (0) or detail tile(1)?

index in : int32

The texture index in the range [0..xref:api/Tinman.Shaders.Terrain.SR_Terrain.adoc#TextureCount-const-pub[.

returns → int32

The texture index.

Returns the combined tile/texture index.

Public / Attributes

Decal


public static attribute Decal → (TEXTURE_2D_ARRAY<float4>)

The shader resource g_decal.

See also

DecalParameters

Displacement


[Length(2)]
public static attribute Displacement → (TEXTURE_2D_ARRAY<float4> [ ])

The shader resource g_displacement.

Material


[Length(16)]
public static attribute Material → (TEXTURE_2D<float4> [ ])

The shader resource g_material.

Tile​Texture


[Length(SR_Terrain.TextureCount * 2)]
public static attribute TileTexture → (TEXTURE_2D_ARRAY<float4> [ ])

The shader resource g_tileTexture.