ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Module: tfg.rendering.barycentrics

Set of functions to compute differentiable barycentric coordinates.


compute_barycentric_coordinates(...): Computes per-pixel barycentric coordinates.

compute_triangle_matrices(...): Computes per-triangle matrices used in barycentric coordinate calculation.

differentiable_barycentrics(...): Computes differentiable barycentric coordinates from a Framebuffer.

normalized_pixel_coordinates(...): Computes the normalized pixel coordinates for the specified image size.