Skip to content

simulo.SurfaceMaterial

Surface material for visual appearance.

Attributes:

  • color — RGB color as (r, g, b) in [0, 1]
  • roughness — Surface roughness in [0, 1]
  • opacity — Opacity in [0, 1]
simulo.SurfaceMaterial(
color: Tuple[float, float, float] = (0.8, 0.8, 0.8),
opacity: float = 1.0,
roughness: float = 0.5,
)
SurfaceMaterial.surface(
color: Tuple[float, float, float] = (0.8, 0.8, 0.8),
roughness: float = 0.5,
opacity: float = 1.0,
) -> SurfaceMaterial

classmethod

Create a surface material.

Args:

  • color — RGB color tuple
  • roughness — Surface roughness
  • opacity — Opacity value

Returns:

SurfaceMaterial instance