Iridescent crystal with raymarching and signed distance fields used to render a 3D scene. Raytracing is a very similar process to raytracing, the key difference is that geometry is typically defined as triangles, spheres, etc. This post assumes foundational knowledge of shaders.

8m read timeFrom varun.ca
Post cover image
Table of contents
Basic shader sceneThe Raymarching AlgorithmUsing GLSL modules for raymarchingCalculating normalsPhong lightingIridescent materialMix Phong and IridescenceCrystal geometry

Sort: