Vixen
c7401864

VolumetricFogConstants

struct
csharp
public struct VolumetricFogConstants

The values of VolumetricFog'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 (18)

  • public Vector2 TanHalfFov

    tanHalfFov at byte 0.

  • public float FogNear

    fogNear at byte 8.

  • public float FogFar

    fogFar at byte 12.

  • public Vector3 SunDirection

    sunDirection at byte 16.

  • public Vector3 SunColour

    sunColour at byte 32.

  • public float PhaseG

    phaseG at byte 44.

  • public Vector3 AmbientColour

    ambientColour at byte 48.

  • public Matrix4x4 InverseView

    inverseView at byte 64.

  • public Vector2 ShadowTexelSize

    shadowTexelSize at byte 448.

  • public float ShadowConstantBias

    shadowConstantBias at byte 456.

  • public float ShadowSlopeBias

    shadowSlopeBias at byte 460.

  • public float ShadowFadeRange

    shadowFadeRange at byte 464.

  • public float ClusterNear

    clusterNear at byte 468.

  • public float ClusterFar

    clusterFar at byte 472.

  • public Matrix4x4 PreviousViewProjection

    previousViewProjection at byte 480.

  • public float HistoryBlend

    historyBlend at byte 544.

  • public Vector3 Jitter

    jitter at byte 560.

  • 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.