Open JeremyLeaf opened 1 year ago
Two approaches possible here.
For 2., we need to add a loop in addRay
that checks whether the ray is emerging within each glass. And hence each glass must implement isInsideGlass
, etc as currently do for GRIN glasses. These change is also required for #37 and the "source-over body-merging" approach of defining "absolute refractive index" (see #51).
Firstly thanks for maintaining this project, it is extremely useful!
Would it be feasible to add an absorbtion setting/parameter to a glass object? So as a ray traverses through the object it gets dimmer due to absorbtion? Maybe this could be achieved by taking the length of a ray within a glass, displaying it with a gradient brightness depending on the length of line.