post-release v0.1.1 updates.

Reviewed By: nikhilaravi

Differential Revision: D20218481

fbshipit-source-id: b153282cc30ad75de970c89ae64526b6be62ee95
This commit is contained in:
Jeremy Reizenstein
2020-03-09 06:35:10 -07:00
committed by Facebook Github Bot
parent 112d32eaf0
commit 5a1d7143d8
2 changed files with 25 additions and 11 deletions

View File

@@ -38,13 +38,15 @@ class MeshRenderer(nn.Module):
def forward(self, meshes_world, **kwargs) -> torch.Tensor:
"""
Render a batch of images from a batch of meshes by rasterizing and then shading.
Render a batch of images from a batch of meshes by rasterizing and then
shading.
NOTE: If the blur radius for rasterization is > 0.0, some pixels can have one or
more barycentric coordinates lying outside the range [0, 1]. For a pixel with
out of bounds barycentric coordinates with respect to a face f, clipping is required
before interpolating the texture uv coordinates and z buffer so that the colors and
depths are limited to the range for the corresponding face.
NOTE: If the blur radius for rasterization is > 0.0, some pixels can
have one or more barycentric coordinates lying outside the range [0, 1].
For a pixel with out of bounds barycentric coordinates with respect to a
face f, clipping is required before interpolating the texture uv
coordinates and z buffer so that the colors and depths are limited to
the range for the corresponding face.
"""
fragments = self.rasterizer(meshes_world, **kwargs)
raster_settings = kwargs.get(