40c2ae1bc9
The refractions are now implemented using the Fresnel equations to take into account the amount of light that is reflected off of transparent surfaces. For example, this leads to a small amount of discoloring at the edges of the ball in the example scene. Indeed, this ball has a refractive index higher than diamond (!), so its edges reflect light much more than when looking at it dead-center. |
||
---|---|---|
.. | ||
core | ||
light | ||
material | ||
render | ||
serialize | ||
shape | ||
texture | ||
lib.rs | ||
main.rs |