Vixen
02b45cc4
csharp
public struct ObjectRecord

The per-object scalars a shading pass reads when they are records of a buffer.

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

Remarks

Sixteen bytes at the object's own slot, matching ObjectRecord in Raven/Library/Geometry/Transform.rvn member for member. Explicit layout is not needed — four four-byte fields in declaration order is what std430 gives — but the padding field is, because a shader's struct is padded to sixteen whether or not a host writes it.

Fields and properties (4)

  • public int ProbeIndex

    Which of the bound probe cubes reaches this object.

  • public float ProbeWeight

    How much of it shows through, against the environment behind it.

  • public int LightCount

    How many entries of the object's light list are filled.

  • public int Reserved

    Padding to the shader's sixteen.

Used by (2)

  • ForwardLightingRenderFeatureVixen.Rendering
  • ObjectRecordTestsVixen.Rendering.Tests