Main Refraction Reflection Scattering Bubbles Links |
Refraction
Refraction is what happens to light when it passes from one medium to another. For example, things appear
differently from the bottom of a swimming pool than on the top. Simplistically, refraction is the bending of light.
The explanation for this phenomenon, however, can be described with light as rays and light as waves. No
matter the case, it is important to remember that the speed of light is constant in every homogeneous medium,
regardless of shape, size or form.
So let's observe the effect of refraction in terms of rays. A ray strikes the surface between substance I
and substance R. The angle i between the incoming ray and the normal vector at the boundary is called the angle of incidence,
and the angle r between the refracted ray and the normal vector on the opposite side is called the angle of refraction.
![]() Solving for Snell's Law for r gives the relation r = arcsin (sin i/n) Explicit Calculation In simple ray tracing, a ray originates at a point P at a directional vector v, which is of unit length. This is the set of all points P+tv where t is a non-negative scalar. When the ray hits the boundary between two different substances, it will refract, and begin a new ray. Notice in the following picture that there will be a new point on the substance P2, and a new directional vector v2, formed by the refraction. ![]() The direction v2 is determined from v by rotation through i-r. You can observe this in the following picture. ![]() Now let N be the unit vector perpendicular to the surface. Let N* be what you get by rotating it through a right angle counter-clockwise. Then we can write v as a sum of components parallel to ![]() |