INNER CODE UNIT · Python

pipeline

BrokenSource/DepthFlow · depthflow/state.py:20

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

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

class LensState(_BaseModel):

    intensity: float = Field(default=0.00, ge=0.0, le=2.0)
    """Blur amount on edges"""

    decay: float = Field(default=0.4, ge=0.0, le=1.0)
    """Shape of the effect, 1 starts at the center"""

    quality: int = Field(default=30, ge=0, le=60)
    """Number of samples per pixel"""

    def pipeline(self) -> Iterable[Uniform]:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…