Linas Beresna | Ray Tracer | 27.03.2018
Reflection implmented. The amount of light reflected can be controlled, here 100% is being reflected.
Glossy reflection added, image used a coefficient of 500. Use with set_glossy({x,y}) where x is the glossy reflection exponent.
set_glossy({x,y})
Added spherical lights and then shot shadow rays to random points on that light and divided by the total number of rays shot.
Refraction added. When creating the material the refraction index is also put in, a refraction index of 0 means that refraction is turned off.
Glossy transmission added. Use with set_glossy({x,y}) where y is the glossy transmission exponent.
Implmented texture mapping so that one can add images to shapes. Use with set_picture(...) where the file path is placed in between the parentheses.
set_picture(...)
Implemented depth of field using... . Focal distance of 8 and aperature of 0.4.
Now the focal distance is set to 13 so that the middle balls are now visible.
This is with the same distance of 13, but with the aperature set to 0.8, which causes the balls not in vision to be more blurry.
Shoutout to the colour scheme I have been using: Gotham by whatyouhide.
Abandoned due to lack of time.
Texture mapping on a cone, flags are from Lithuania and the UK.
Final scene of an office. Here one can see glossy transmission in the cup, glossy reflection in the computer screen and reflection in the mirror.
Same scene but with depth.