mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-15 11:50:35 +08:00
allow cameras to be None in rasterizer initialization
Summary: Fix to enable a mesh/point rasterizer to be initialized without having to specify the camera. Reviewed By: jcjohnson, gkioxari Differential Revision: D21362359 fbshipit-source-id: 4f84ea18ad9f179c7b7c2289ebf9422a2f5e26de
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c5ab57156
commit
17ca6ecd81
@@ -79,6 +79,7 @@
|
||||
"metadata": {
|
||||
"colab": {},
|
||||
"colab_type": "code",
|
||||
"collapsed": true,
|
||||
"id": "w9mH5iVprQdZ"
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -260,7 +261,7 @@
|
||||
" cameras=cameras, \n",
|
||||
" raster_settings=raster_settings\n",
|
||||
" ),\n",
|
||||
" shader=HardPhongShader(device=device, lights=lights)\n",
|
||||
" shader=HardPhongShader(device=device, cameras=cameras, lights=lights)\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user