3D Ray Marching (simple shapes)

2,645
0
2020-03-02に共有
Raymarching references:
https://youtu.be/Cp5WWtMoeKg (explanation)
https://youtu.be/PGtv-dBi2wE (tutorials)
https://youtu.be/Ff0jJyyiVyw (shapes)
Unrealistic penumbra-shadowing reference:
https://www.iquilezles.org/www/articles/rmshadows/rmshadows.htm
SDF functions of shapes reference:
https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
Reflected ray calculation reference:
http://paulbourke.net/geometry/reflected/

The rest was built from scratch for Scratch.

7-Mar-2020: Applied new rendering features from Kouzerumatsu's remix (bugfix, fresnel reflectance, out-of-focus diffusion, hq) and added new shapes: octahedron and sphere arc.

ray marching marcher tracer tracing 3d math