# Module: tfg.rendering.triangle_rasterizer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/triangle_rasterizer.py) |

This module implements a differentiable rasterizer of triangular meshes.

The resulting rendering contains perspective-correct interpolation of attributes
defined at the vertices of the rasterized meshes. This rasterizer does not
provide gradients through visibility, but it does through visible geometry and
attributes.

## Functions

[`rasterize(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/rendering/triangle_rasterizer/rasterize): Rasterizes the scene.