pypbr.blending.MaskBlend
- class pypbr.blending.MaskBlend(mask: FloatTensor)[source]
Bases:
BlendMethod
Blend two materials using a provided mask.
- Parameters:
mask (torch.FloatTensor) – The blending mask tensor, with values in [0, 1], shape [1, H, W] or [H, W].
- Raises:
ValueError – If the mask has an invalid shape.
- __init__(mask: FloatTensor)[source]
Methods
__init__
(mask)