Last Lectures

Interpolation Across Triangles: Barycentric coordinates 重心坐标

Interpolation Across Triangles

Barycentric Coordinates

Using Barycentric Coordinates

Applying Textures

Simple Texture Mapping: Diffuse Col

for each rasterized screen sample (x, y): // usually a pixel's center
	(u, v) = evaluate texture coordinate at (x, y) // using barycentric coordinates!
	texcolor = texture.sample(u, v);
	set sample's color to texcolor; // Usually the diffuse albedo Kd (recall the Blinn-Phong reflectance model)

Texture Magnification - Easy Case (too small)