VolumetricFogConstants
csharp
public struct VolumetricFogConstantsThe values of VolumetricFog's uniform block, in C# types.
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 TanHalfFovtanHalfFov at byte 0.
public float FogNearfogNear at byte 8.
public float FogFarfogFar at byte 12.
public Vector3 SunDirectionsunDirection at byte 16.
public Vector3 SunColoursunColour at byte 32.
public float PhaseGphaseG at byte 44.
public Vector3 AmbientColourambientColour at byte 48.
public Matrix4x4 InverseViewinverseView at byte 64.
public Vector2 ShadowTexelSizeshadowTexelSize at byte 448.
public float ShadowConstantBiasshadowConstantBias at byte 456.
public float ShadowSlopeBiasshadowSlopeBias at byte 460.
public float ShadowFadeRangeshadowFadeRange at byte 464.
public float ClusterNearclusterNear at byte 468.
public float ClusterFarclusterFar at byte 472.
public Matrix4x4 PreviousViewProjectionpreviousViewProjection at byte 480.
public float HistoryBlendhistoryBlend at byte 544.
public Vector3 Jitterjitter at byte 560.
public const int SizeThe block's size in bytes.
Methods (1)
public readonly void Write(Span<byte> buffer)Writes every value into at its baked offset.