Vixen
02b45cc4

ForwardPlusLightsElement

struct
csharp
public struct ForwardPlusLightsElement

One element of ForwardPlus.lights.

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

Fields and properties (15)

  • public Vector3 Position

    lights[].position — 12 bytes at 0 into the element.

  • public float Kind

    lights[].kind — 4 bytes at 12 into the element.

  • public Vector3 Color

    lights[].color — 12 bytes at 16 into the element.

  • public float Range

    lights[].range — 4 bytes at 28 into the element.

  • public Vector3 Direction

    lights[].direction — 12 bytes at 32 into the element.

  • public float CosInner

    lights[].cosInner — 4 bytes at 44 into the element.

  • public float Radius

    lights[].radius — 4 bytes at 48 into the element.

  • public float CosOuter

    lights[].cosOuter — 4 bytes at 52 into the element.

  • public float ShadowIndex

    lights[].shadowIndex — 4 bytes at 56 into the element.

  • public float Padding

    lights[].padding — 4 bytes at 60 into the element.

  • public Vector3 Tangent

    lights[].tangent — 12 bytes at 64 into the element.

  • public float HalfLength

    lights[].halfLength — 4 bytes at 76 into the element.

  • public const int Count

    How many elements the shader declared room for.

  • public const int Stride

    Bytes from one element to the next.

  • public const int BaseOffset

    Byte offset of element zero within the block.

Methods (1)

  • public readonly void Write(Span<byte> buffer, int index)

    Writes this element into slot .