PS_In_Texture

Description

[StageInOut]
struct Tinman.Shaders.Terrain.PS_In_Texture

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

Pixel shader input for TerrainParameters.PassTextureAtlas.

Public / Attributes

Color


[Color]
public attribute Color → (float4)

The texture color.

Eye​Distance


[TexCoord(0)]
public attribute EyeDistance → (float4)

The eye vector in float4.xyz and camera distance in float4.w.

Normal


[Normal]
public attribute Normal → (float3)

The normal vector.

Position


[System(Value.Position)]
public attribute Position → (float4)

The vertex position.

Shadow


[TexCoord(1)]
public attribute Shadow → (float4)

The shadow coordinates.

Tex​Coords


[Length(SR_Terrain.TextureCount)] [TexCoord(2)] [With(Behaviour.Centroid)]
public attribute TexCoords → (float4 [ ])

The texture coordinates for each slot.