raytracer-js
raytracer-js copied to clipboard
Reflection and transparency
As far as I can see only the color and emission vectors are used in the tracing algorithm. Altering reflection and/or transparency does not have any effect.
Hi,
yes, you are correct, those properties ('transparency' and 'reflection') in Material.js are not used. It's a quite simple implementation. It is only possible to define&render sphere objects. And these objects can have emission value, so it can act as a light source. There are no reflections or transparency.