all-is-cubes icon indicating copy to clipboard operation
all-is-cubes copied to clipboard

Implement fog in raytracer

Open kpreid opened this issue 1 year ago • 0 comments

In principle, this is simple: we already have support for volumetric rendering, and we just need to count empty space as containing the fog. In practice,

  • the current code has lots of assumptions that empty space can be skipped and has zero effect other than possibly being the end of a semi-transparent material, and
  • the fog we are trying to render has a non-uniform density, so we need a special calculation for it.

kpreid avatar Sep 25 '24 17:09 kpreid