VolumetricFogInjectConstants
csharp
public struct VolumetricFogInjectConstantsThe values of VolumetricFogInject'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 (10)
public Matrix4x4 InverseViewinverseView at byte 0.
public Vector2 TanHalfFovtanHalfFov at byte 64.
public float FogNearfogNear at byte 72.
public float FogFarfogFar at byte 76.
public float Densitydensity at byte 80.
public Vector3 ScatteringAlbedoscatteringAlbedo at byte 96.
public float FogHeightfogHeight at byte 108.
public float HeightFalloffRateheightFalloffRate at byte 112.
public Vector3 Jitterjitter at byte 128.
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.