Better version here (although slower, as it is a raymarcher) with many different shapes, reflections, shadows and lighting. https://scratch.mit.edu/projects/397929034/ Use turbo mode (shift+click the flag) Change the resolution by moving your mouse to the top of the screen. Changing it will restart the program Runs faster on forkphorus - https://forkphorus.github.io/#383943514
Made from a series of raytracing tutorials by @geotale . I'm working on adding textures, reflections and maybe other shapes, as spheres have the easiest math. Thanks to @Raihan142857 for fixing the specular lighting My real inspiration came from @kouzone , with probably the best 3d project I've seen on scratch to this day - https://scratch.mit.edu/projects/372144443/ (raymarched 3d shapes with reflections, shadows, lighting and tons more.) I've seen it multiple times and I'm still amazed. #ray #madness