Title: DE tetrahedron Post by: SCORPION on October 30, 2014, 12:52:56 PM It is impossible to write the function DE Tetrahedron.
That's the way it turns out, a normal Tetrahedron - no. What is wrong? Code: #include "DE-Raytracer.frag" Title: Re: DE tetrahedron Post by: claude on October 30, 2014, 02:19:22 PM Here's one I came up with by trial and error after reading http://mathworld.wolfram.com/Point-PlaneDistance.html
Not sure why it works (I just fiddled with it until it did). There's probably a better way. Code: #include "DE-Raytracer.frag" Title: Re: DE tetrahedron Post by: SCORPION on October 30, 2014, 02:38:54 PM Thanks, it works! so to simplify Code: #include "DE-Raytracer.frag" Perhaps there is another way, but I have not found ... |