@@ -75,6 +75,11 @@ RasterizeMeshesNaiveCuda(
75
75
// coordinates for each pixel; if this is False then
76
76
// this function instead returns screen-space
77
77
// barycentric coordinates for each pixel.
78
+ // clip_barycentric_coords: Whether, after any perspective correction
79
+ // is applied but before the depth is calculated (e.g. for
80
+ // z clipping), to "correct" a location outside the face (i.e. with
81
+ // a negative barycentric coordinate) to a position on the edge of the
82
+ // face.
78
83
// cull_backfaces: Bool, Whether to only rasterize mesh faces which are
79
84
// visible to the camera. This assumes that vertices of
80
85
// front-facing triangles are ordered in an anti-clockwise
@@ -191,6 +196,11 @@ torch::Tensor RasterizeMeshesBackwardCuda(
191
196
// coordinates for each pixel; if this is False then
192
197
// this function instead returns screen-space
193
198
// barycentric coordinates for each pixel.
199
+ // clip_barycentric_coords: Whether, after any perspective correction
200
+ // is applied but before the depth is calculated (e.g. for
201
+ // z clipping), to "correct" a location outside the face (i.e. with
202
+ // a negative barycentric coordinate) to a position on the edge of the
203
+ // face.
194
204
//
195
205
// Returns:
196
206
// grad_face_verts: float32 Tensor of shape (F, 3, 3) giving downstream
@@ -352,6 +362,11 @@ RasterizeMeshesFineCuda(
352
362
// coordinates for each pixel; if this is False then
353
363
// this function instead returns screen-space
354
364
// barycentric coordinates for each pixel.
365
+ // clip_barycentric_coords: Whether, after any perspective correction
366
+ // is applied but before the depth is calculated (e.g. for
367
+ // z clipping), to "correct" a location outside the face (i.e. with
368
+ // a negative barycentric coordinate) to a position on the edge of the
369
+ // face.
355
370
// cull_backfaces: Bool, Whether to only rasterize mesh faces which are
356
371
// visible to the camera. This assumes that vertices of
357
372
// front-facing triangles are ordered in an anti-clockwise
@@ -441,6 +456,7 @@ RasterizeMeshesFine(
441
456
// blur_radius: float distance in NDC coordinates uses to expand the face
442
457
// bounding boxes for the rasterization. Set to 0.0 if no blur
443
458
// is required.
459
+ // faces_per_pixel: the number of closeset faces to rasterize per pixel.
444
460
// bin_size: Bin size (in pixels) for coarse-to-fine rasterization. Setting
445
461
// bin_size=0 uses naive rasterization instead.
446
462
// max_faces_per_bin: The maximum number of faces allowed to fall into each
@@ -451,6 +467,11 @@ RasterizeMeshesFine(
451
467
// coordinates for each pixel; if this is False then
452
468
// this function instead returns screen-space
453
469
// barycentric coordinates for each pixel.
470
+ // clip_barycentric_coords: Whether, after any perspective correction
471
+ // is applied but before the depth is calculated (e.g. for
472
+ // z clipping), to "correct" a location outside the face (i.e. with
473
+ // a negative barycentric coordinate) to a position on the edge of the
474
+ // face.
454
475
// cull_backfaces: Bool, Whether to only rasterize mesh faces which are
455
476
// visible to the camera. This assumes that vertices of
456
477
// front-facing triangles are ordered in an anti-clockwise
0 commit comments