Vixen
c7401864

VolumetricFogInjectConstants

struct
csharp
public struct VolumetricFogInjectConstants

The values of VolumetricFogInject's uniform block, in C# types.

Read the guide page for this →

Remarks

Field order follows the shader's declaration order, not the block's byte order — the two differ wherever std140 inserted padding, and the writer knows the difference.

Fields and properties (10)

  • public Matrix4x4 InverseView

    inverseView at byte 0.

  • public Vector2 TanHalfFov

    tanHalfFov at byte 64.

  • public float FogNear

    fogNear at byte 72.

  • public float FogFar

    fogFar at byte 76.

  • public float Density

    density at byte 80.

  • public Vector3 ScatteringAlbedo

    scatteringAlbedo at byte 96.

  • public float FogHeight

    fogHeight at byte 108.

  • public float HeightFalloffRate

    heightFalloffRate at byte 112.

  • public Vector3 Jitter

    jitter at byte 128.

  • public const int Size

    The block's size in bytes.

Methods (1)

  • public readonly void Write(Span<byte> buffer)

    Writes every value into at its baked offset.