Vixen
02b45cc4

VignetteConstants

struct
csharp
public struct VignetteConstants

The values of Vignette's uniform block, in C# types.

No guide page documents this yet — the page shows what the code says about itself.

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 (16)

  • public float VignetteIntensity

    vignetteIntensity at byte 0.

  • public float VignetteSmoothness

    vignetteSmoothness at byte 4.

  • public Vector3 VignetteColor

    vignetteColor at byte 16.

  • public Vector2 VignetteCenter

    vignetteCenter at byte 32.

  • public float VignetteRoundness

    vignetteRoundness at byte 40.

  • public float AspectRatio

    aspectRatio at byte 44.

  • public float DistortionIntensity

    distortionIntensity at byte 48.

  • public Vector2 DistortionScale

    distortionScale at byte 56.

  • public Vector2 DistortionCenter

    distortionCenter at byte 64.

  • public float DistortionZoom

    distortionZoom at byte 72.

  • public float AberrationStrength

    aberrationStrength at byte 76.

  • public float GrainIntensity

    grainIntensity at byte 80.

  • public float GrainScale

    grainScale at byte 84.

  • public float FrameIndex

    frameIndex at byte 88.

  • public Vector2 ScreenSize

    screenSize at byte 96.

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