Open acs opened 4 years ago
In Ray Tracing, the 2D image is computed pixel by pixel applying the physical laws of light to models in the scene. How are these models described? #13 Take a look to:
https://gist.github.com/rossant/6046463
As you can see, the rendering is done "# Loop through all pixels." And models are described with equations to find the intersections points with the rays (collision point).
https://www.alanzucconi.com/2016/07/01/volumetric-rendering/ https://www.volume-gfx.com/volume-rendering/volume-model/
«This is the basic concept behind volumetric rendering: simulating how light would propagate within the volume of an object.» for example in the fragment (per pixel) shader.
One article to read:
http://raytracey.blogspot.com/2008/08/voxel-ray-tracing-vs-polygon-ray.html