basic kodelife raymarch with outlines
✓ Published0🌍 Public
Aaman-tiwari
Last edited Sep 29, 2018
Created on Sep 29, 2018
A raymarched scene shows a red and blue sphere smoothly blending into a moving box, with a black outline appearing when rays pass close to the surface. The shader, written in GLSL 150 and run in Kodelife, uses signed distance functions for the sphere and box, a smooth minimum operation for the blend, and a central-difference method for surface normals. Lighting is computed from a fixed directional light, while the raymarching loop performs up to 50 steps to find surface hits or near misses.
AI-generated description