![](http://cs.unm.edu/~jbowles/cs413/a6/tests/green_glass_1.00.png)
In this next image, the index of refraction starts as 1.00, but then changes to 1.39:
![](http://cs.unm.edu/~jbowles/cs413/a6/tests/green_glass_1.39.png)
Reflections are currently not implemented. Notice where total internal reflection begins? Notice how the rays are bent away from the viewpoint? This is what I would expect when the index of refraction becomes greater.
Here's an example where the transition is from 1.39 to 1.00:
![](http://cs.unm.edu/~jbowles/cs413/a6/tests/green_glass_1.39-1.00.png)
I suspect that these images may be correct, well, as correct as they can be without implementing reflections and using a Fresnel term to make sure that energy is conserved.
I'm using Snell's law to calculate the direction of the refracted rays
No comments:
Post a Comment