Updates to cameras and rasterizer to infer camera type correctly

Summary: Small update to the cameras and rasterizer to correctly infer the type of camera (perspective vs orthographic).

Reviewed By: jcjohnson

Differential Revision: D26267225

fbshipit-source-id: a58ed3bc2ab25553d2a4307c734204c1d41b5176
This commit is contained in:
Nikhila Ravi
2021-02-08 14:30:55 -08:00
committed by Facebook GitHub Bot
parent 39f49c22cd
commit 838b73d3b6
5 changed files with 65 additions and 11 deletions

View File

@@ -242,7 +242,10 @@ class TestRenderImplicit(TestCaseMixin, unittest.TestCase):
rasterizer=MeshRasterizer(
cameras=cameras_randomized,
raster_settings=RasterizationSettings(
image_size=image_size, blur_radius=1e-3, faces_per_pixel=10
image_size=image_size,
blur_radius=1e-3,
faces_per_pixel=10,
perspective_correct=False,
),
),
shader=SoftPhongShader(