Is it because we already compute the barycentric coordinates of this hit point that it will make it much easier for ray-tracing algorithms (that we will discuss in future lectures) even easier to compute?
keenan
@dvanmali The barycentric coordinates don't really make the ray tracing process any easier (they're just a byproduct of the "in triangle" calculation), but it is rather convenient that we have these coordinates if we want to do any kind of sampling of data on the triangle vertices (such as colors, texture coordinates, etc.).
Is it because we already compute the barycentric coordinates of this hit point that it will make it much easier for ray-tracing algorithms (that we will discuss in future lectures) even easier to compute?
@dvanmali The barycentric coordinates don't really make the ray tracing process any easier (they're just a byproduct of the "in triangle" calculation), but it is rather convenient that we have these coordinates if we want to do any kind of sampling of data on the triangle vertices (such as colors, texture coordinates, etc.).