raytracer-js icon indicating copy to clipboard operation
raytracer-js copied to clipboard

Reflection and transparency

Open Orbifold opened this issue 5 years ago • 1 comments

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.

Orbifold avatar Nov 20 '19 15:11 Orbifold

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.

ercang avatar Nov 21 '19 11:11 ercang