Interpolates attributes using barycentric weights.
tfg.rendering.opengl.math.interpolate_attributes(
attribute, barycentric, name=None
)
Note:
In the following, A1 to An are optional batch dimensions.
Args |
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'.
|
Returns |
A tensor of shape [A1, ..., An, B] , containing interpolated attributes.
|