Log In  

Cart #ywosahuru-3 | 2020-05-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Reposting this in carts, because it's as finished as it's ever going to be :-).

This is a little SDF ray marcher I've been playing with.
It renders two randomly placed spheres and a torus above a checker-board plane in different colours. Often one of them is reflective.

The code is ugly as heck, and the specular highlights are completely wrong, but it occasionally spits out something pretty imo.

Update: Changed to use sqrt() again, as it's much more accurate in v0.2.0

P#69517 2019-10-31 07:24 ( Edited 2020-05-21 09:26)


P#71208 2019-12-19 01:54

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-22 00:28:25 | 0.010s | Q:14