Graphics & Media Lab. >> Курсы >> Курс Ю.М.Баяковского 1999

Ray Tracing

Ray tracing tree
  raytrace( ray )
     o find closest intersection
     o cast shadow ray, calculate colour_local
     o colour_reflect = raytrace( reflected_ray )
     o colour_refract = raytrace( refracted_ray )
     o colour = k1*colour_local + k2*colour_reflect + k3*colour_refract
     o return( colour )
Comments

Graphics & Media Lab. >> Библиотека | Курсы | Графикон

Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
mailto: Laboratory