Vixen
02b45cc4
csharp
public sealed class TracedCardCapture

Captures cards by marching a distance field — doc 19 § L4's capture, reference half.

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

Remarks

One orthographic ray per texel, entering at the card's near plane and marching down the card's axis: a hit stores depth, the field's gradient as the normal, and the material's answers; a miss leaves the texel invalid. Deterministic, so a capture can be asserted texel by texel — the rasterising capture is the device half and is compared against this, the arrangement every capture in this engine has with its reference.

Fields and properties (1)

  • public float Bias

    How far off the near plane a capture ray starts, in world units.

Methods (2)

  • public TracedCardCapture(IDistanceField geometry, ISurfaceMaterial material)

    Captures cards by marching a distance field — doc 19 § L4's capture, reference half.

  • public int Capture(SurfaceCacheStore cache, int card)

    Fills one card's texels from the field.

Used by (8)

  • ArenaIlluminationThirdPersonShooter
  • CornellBoxTestsVixen.Rendering.SurfaceCache.Tests
  • ReflectionTraceDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCacheRadiosityDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCacheRendererDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCacheTestsVixen.Rendering.SurfaceCache.Tests
  • SurfaceCardCaptureDeviceTestsVixen.Graphics.Golden.Tests
  • TracedReflectionTestsVixen.Rendering.Reflections.Tests