VS_In_Gaussian

Description

[StageInOut]
struct Tinman.Demo.Shaders.VS_In_Gaussian

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

Vertex shader input for Example_GaussianParameters.

Public / Attributes

Color


[Color]
public attribute Color → (float4)

The splat color and opacity.

Packed Splat / Byte Layout:
float4.x : #0 (R)
float4.y : #1 (G)
float4.z : #2 (B)
float4.w : #3 (A)

Position​Rotation​Scale


[Position(1)]
public attribute PositionRotationScale → (int3)

The packed splat center, rotation and scale.

Packed Splat / Byte Layout:
int3.x : #4, 0x0000FFFF (center.x)
int3.x : #6, 0xFFFF0000 (center.y)
int3.y : #8, 0x0000FFFF (center.z)
int3.y : #10, 0x00FF0000 (quat oct.U)
int3.y : #11, 0xFF000000 (quat oct.V)
int3.z : #12, 0x000000FF (scale.x)
int3.z : #13, 0x0000FF00 (scale.y)
int3.z : #14, 0x00FF0000 (scale.z)
int3.z : #15, 0xFF000000 (quat angle)