Vixen
02b45cc4
csharp
public static class DistanceFieldTracer

Sphere tracing, and the two things everybody wants from it.

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

Remarks

The CPU half of what a shader will do per pixel. It exists here first because it can be checked: marching an analytic sphere has a closed-form answer, and a tracer that agrees with arithmetic is a tracer whose port can be compared against something.

All three routines are the published formulations — sphere tracing from Hart, and the cone shadow and the occlusion integral in the shape Quilez popularised. Re-derived and credited, not copied.

Methods (3)

Used by (9)

  • CardRadiosityVixen.Rendering.SurfaceCache
  • CornellBoxTestsVixen.Rendering.SurfaceCache.Tests
  • DistanceFieldTracerTestsVixen.Rendering.DistanceFields.Tests
  • ExitCriteriaTestsVixen.Rendering.ScreenProbes.Tests
  • RenderedSceneTestsVixen.Rendering.DistanceFields.Tests
  • TracedCardCaptureVixen.Rendering.SurfaceCache
  • TracedIrradianceFillerVixen.Rendering.IrradianceFields
  • TracedReflectionsVixen.Rendering.Reflections
  • TracedScreenProbeGatherVixen.Rendering.ScreenProbes