pypbr.blending.GradientBlend

class pypbr.blending.GradientBlend(direction: str = 'horizontal')[source]

Bases: BlendMethod

Blend two materials using a linear gradient mask.

Parameters:

direction (str) – The direction of the gradient (‘horizontal’ or ‘vertical’).

Raises:

ValueError – If an invalid direction is specified.

__init__(direction: str = 'horizontal')[source]

Methods

__init__([direction])