Module: tfg.rendering.barycentrics

Stay organized with collections Save and categorize content based on your preferences.

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.