Skip to content

Medium

Medium dataclass

Medium represents a volumetric material inside/outside of a shape.

Attributes:

Name Type Description
albedo ColorLike)

The albedo of the medium.

scale float

The scale of the medium.

Source code in hakowan/grammar/channel/material/medium.py
@dataclass(slots=True)
class Medium:
    """Medium represents a volumetric material inside/outside of a shape.

    Attributes:
        albedo (ColorLike) : The albedo of the medium.
        scale (float): The scale of the medium.
    """
    albedo: ColorLike = 0.75
    scale: float = 1.0