Vixen
dd8b0a81

AmbientCombineConstants

struct
csharp
public struct AmbientCombineConstants

The values of AmbientCombine'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 (26)

  • public float UseIrradiance

    useIrradiance at byte 0.

  • public float UseOcclusion

    useOcclusion at byte 4.

  • public float UseContactOcclusion

    useContactOcclusion at byte 8.

  • public float UseBentNormal

    useBentNormal at byte 12.

  • public float UseReflections

    useReflections at byte 16.

  • public float UseSpecular

    useSpecular at byte 20.

  • public float Intensity

    intensity at byte 24.

  • public Vector3 EnvironmentShL00

    environmentSh.l00 at byte 32.

  • public Vector3 EnvironmentShL1m1

    environmentSh.l1m1 at byte 48.

  • public Vector3 EnvironmentShL10

    environmentSh.l10 at byte 64.

  • public Vector3 EnvironmentShL11

    environmentSh.l11 at byte 80.

  • public Vector3 EnvironmentShL2m2

    environmentSh.l2m2 at byte 96.

  • public Vector3 EnvironmentShL2m1

    environmentSh.l2m1 at byte 112.

  • public Vector3 EnvironmentShL20

    environmentSh.l20 at byte 128.

  • public Vector3 EnvironmentShL21

    environmentSh.l21 at byte 144.

  • public Vector3 EnvironmentShL22

    environmentSh.l22 at byte 160.

  • public float UseEnvironmentSh

    useEnvironmentSh at byte 176.

  • public float AmbientIntensity

    ambientIntensity at byte 180.

  • public float UseBilateral

    useBilateral at byte 184.

  • public Matrix4x4 InverseViewProjection

    inverseViewProjection at byte 192.

  • public Matrix4x4 InverseView

    inverseView at byte 256.

  • public float UseView

    useView at byte 320.

  • public Vector2 OcclusionTexel

    occlusionTexel at byte 328.

  • public Vector2 ContactTexel

    contactTexel at byte 336.

  • public float PlaneTolerance

    planeTolerance at byte 344.

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