INNER CODE UNIT · Python

_BaseModel

BrokenSource/DepthFlow · depthflow/state.py:7

class _BaseModel(BaseModel):
    model_config = ConfigDict(use_attribute_docstrings=True)

# ---------------------------------------------------------------------------- #

class VignetteState(_BaseModel):

    intensity: float = Field(default=0.00, ge=0.0, le=1.0)
    """Darken amount in edges of the image"""

    decay: float = Field(default=20.00, ge=0.0, le=100.0)
    """Shape of the effect, how fast it darkens"""

    def pipeline(self) -> Iterable[Uniform]:
        yield Uniform("float", "iVigIntensity", self.intensity)
        yield Uniform("float", "iVigDecay",     self.decay)

# ---------------------------------------------------------------------------- #

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…