The second part of the Introduction to new NVidia RTX graphics cards architecture and new Raytracing pipeline in DirectX12 (DXR) and Vulkan 1.2 libraries used in real-time rendering.
7. Triangle barycentrics coordinates
A B
C
P = (1-u-v )A+uB+vC
u
v
w
P
Normalized barycentric coords
1 = u + v + w
P = wA+uB+vC
Barycentric (u, v, w)
8. Triangle barycentrics coordinates
A (0,0,1) B (1,0,0)
C (0,1,0)
P = (1-u-v )A+uB+vC
u
v
w
P
P = A = 1A + 0B +0C
P = B = 0A + 1B +0C
P = C = 0A + 0B +1C
Barycentric (u, v, (1-u-v ))