Spinning 3D donut

This implementation uses path tracing of signed distance functions to render the donut. Meant to be compiled into a WASM module and displayed on a website.

                              @@@@@
                      @@@@@o0o-000-*o*[email protected]
                  #@@#*o,o. *   +   -  -.+-oo00
               #@@o*0.o  0             -  , --+o00
             ##@#*o,@+       +*   ,.       .-.--**o0
            ##[email protected]+####  # @o  +++-,  ., .  ---+,++*o0
          ##@##0*-,-*#[email protected]*o             . ..-....,+***o0
         ##@##0*++o#0000                 ..,,-,,,-+***o0
         ###[email protected]#[email protected]@@@                   ,------+-++*oo
        ##@@@o###o#@##@                   -++++-++*+**oo0
        ####0##@##@[email protected]##                   +*+++********oo
        #@##o#@[email protected]#@####                 ********+**+**oo
        #@##[email protected]#[email protected]######             ooooooo***+**+**oo
        @###[email protected]##@###@###########@@@@@00000ooooo**+*+***o
        @@#@@#o#@[email protected]############@@@@000oo***********oo
         @@0#[email protected]*@o*###########@@@@[email protected]@@00000ooo+**+*+***o
          @#0#[email protected]*@o+#0o******##@@@@@*******oo++*-*+*+**
           @@[email protected]*@[email protected]*[email protected]*[email protected]+++*o0+++*o-+*+*++***
            @@[email protected]@*[email protected]*[email protected][email protected]*+++*o0--+*o-+*-*-**+++
              @[email protected]@*@*@[email protected]*+---++*oo,-*o-*-*+-+-
                [email protected]*[email protected]*++--++*oo-+*-*++,-,
                   oo0oo0+0*+,ooooo,-+*,+---,.
                        **o*-*-,,,-+.--,.

GitHub

View Github