AmbientCombineConstants
public struct AmbientCombineConstantsThe values of AmbientCombine'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 (26)
public float UseIrradianceuseIrradiance at byte 0.
public float UseOcclusionuseOcclusion at byte 4.
public float UseContactOcclusionuseContactOcclusion at byte 8.
public float UseBentNormaluseBentNormal at byte 12.
public float UseReflectionsuseReflections at byte 16.
public float UseSpecularuseSpecular at byte 20.
public float Intensityintensity at byte 24.
public Vector3 EnvironmentShL00environmentSh.l00 at byte 32.
public Vector3 EnvironmentShL1m1environmentSh.l1m1 at byte 48.
public Vector3 EnvironmentShL10environmentSh.l10 at byte 64.
public Vector3 EnvironmentShL11environmentSh.l11 at byte 80.
public Vector3 EnvironmentShL2m2environmentSh.l2m2 at byte 96.
public Vector3 EnvironmentShL2m1environmentSh.l2m1 at byte 112.
public Vector3 EnvironmentShL20environmentSh.l20 at byte 128.
public Vector3 EnvironmentShL21environmentSh.l21 at byte 144.
public Vector3 EnvironmentShL22environmentSh.l22 at byte 160.
public float UseEnvironmentShuseEnvironmentSh at byte 176.
public float AmbientIntensityambientIntensity at byte 180.
public float UseBilateraluseBilateral at byte 184.
public Matrix4x4 InverseViewProjectioninverseViewProjection at byte 192.
public Matrix4x4 InverseViewinverseView at byte 256.
public float UseViewuseView at byte 320.
public Vector2 OcclusionTexelocclusionTexel at byte 328.
public Vector2 ContactTexelcontactTexel at byte 336.
public float PlaneToleranceplaneTolerance at byte 344.
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.