gs.surfaces.Metal#

class genesis.options.surfaces.Metal(*, color: tuple[typing.Annotated[float, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=False), _PydanticGeneralMetadata(allow_inf_nan=False)])], ...] | None = None, opacity: float | None = None, roughness: float | None = 0.1, metallic: float | None = None, emissive: tuple[typing.Annotated[float, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=False), _PydanticGeneralMetadata(allow_inf_nan=False)])], ...] | None = None, ior: float | None = None, default_roughness: float = 1.0, vis_mode: ~typing.Literal['visual', 'collision', 'particle', 'sdf', 'recon'] | None = None, smooth: bool = True, double_sided: bool | None = None, cutoff: float = 180.0, normal_diff_clamp: float = 180.0, recon_backend: ~typing.Literal['splashsurf', 'openvdb'] = 'splashsurf', generate_foam: bool = False, foam_options: ~genesis.options.misc.FoamOptions = <factory>, metal_type: ~typing.Literal['aluminium', 'gold', 'copper', 'brass', 'iron', 'titanium', 'vanadium', 'lithium'] = 'iron', diffuse_texture: ~genesis.options.textures.Texture | None = None, opacity_texture: ~genesis.options.textures.Texture | None = None, roughness_texture: ~genesis.options.textures.Texture | None = None, normal_texture: ~genesis.options.textures.Texture | None = None, emissive_texture: ~genesis.options.textures.Texture | None = None)[source]#

Metal surface.

Parameters:
  • color (tuple | None, optional) – Diffuse color of the surface. Shortcut for diffuse_texture with a single color.

  • metal_type (str, optional) – Type of metal, indicating a specific index of refraction (IOR). Possible values are [‘aluminium’, ‘gold’, ‘copper’, ‘brass’, ‘iron’, ‘titanium’, ‘vanadium’, ‘lithium’]. Defaults to ‘iron’.

  • diffuse_texture (gs.textures.Texture | None, optional) – Diffuse (basic color) texture of the surface.

  • opacity_texture (gs.textures.Texture | None, optional) – Opacity texture of the surface.

  • roughness_texture (gs.textures.Texture | None, optional) – Roughness texture of the surface.

  • normal_texture (gs.textures.Texture | None, optional) – Normal texture of the surface.

  • emissive_texture (gs.textures.Texture | None, optional) – Emissive texture of the surface.