Rendering SDF Primitives

Has anybody been able to render a primitive shape using SDF’s, I see that SDFs are used in AO in the engine but no documentation on how to use them to render a primitive shape (or fractal).

You can render signed distance fields by marching through them on CPU, creating geometry on the the fly and submitting it to GPU, or march through SDF in the shader, fully on GPU.

Hey Deathrey,

Thanks for responding, are there any guides to march through SDF’s in the shader so it’s fully on the GPU?

This is a bit over my head.

You can take a look here and here.