-**edge_grad**: special module that computes gradients for the **rasterize** step, which is not differentiable on its own. For details, please see [**Rasterized Edge Gradients: Handling Discontinuities Differentiably**](https://arxiv.org/abs/2405.02508)
## Hello Triangle
The "Hello Triangle" with DRTK would look like this:
```python
importdrtk
importtorchasth
fromtorchvision.utilsimportsave_image# to save images
# create vertex buffer of shape [1 x n_vertices x 3], here for triangle `n_vertices` == 3
-**edge_grad**: special module that computes gradients for the **rasterize** step, which is not differentiable on its own. For details, please see [**Rasterized Edge Gradients: Handling Discontinuities Differentiably**](https://arxiv.org/abs/2405.02508)
## Hello Triangle
The "Hello Triangle" with DRTK would look like this:
```python
importdrtk
importtorchasth
fromtorchvision.utilsimportsave_image# to save images
# create vertex buffer of shape [1 x n_vertices x 3], here for triangle `n_vertices` == 3