A fresnel rendering engine