Log In  

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

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)

nice

P#71208 2019-12-19 01:54

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-06-03 10:52 | 0.017s | 2097k | Q:29