tfg.rendering.opengl.math.interpolate_attributes

Interpolates attributes using barycentric weights.

Note:

In the following, A1 to An are optional batch dimensions.

attribute A tensor of shape [A1, ..., An, 3, B], where the last dimension stores a per-vertex B-dimensional attribute.
barycentric A tensor of shape [A1, ..., An, 3], where the last dimension contains barycentric coordinates.
name A name for this op. Defaults to 'interpolate_attributes'.

A tensor of shape [A1, ..., An, B], containing interpolated attributes.