gs.surfaces.Glass#
- class genesis.options.surfaces.Glass(*, 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.0, 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 = 1.5, 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>, thickness: float | None = None, subsurface: bool = False, specular_texture: ~genesis.options.textures.Texture | None = None, diffuse_texture: ~genesis.options.textures.Texture | None = None, transmission_texture: ~genesis.options.textures.Texture | None = None, thickness_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]#
Glass surface with specular reflection and transmission.
- Parameters:
color (tuple | None, optional) – Specular color of the surface. Shortcut for specular_texture with a single color.
roughness (float, optional) – Roughness of the surface. Defaults to 0.0.
ior (float, optional) – Index of Refraction. Defaults to 1.5.
subsurface (bool) – Whether to apply a simple BSSRDF subsurface to the glass material.
thickness (float | None, optional) – The thickness of the top surface when ‘subsurface’ is set to True. Shortcut for thickness_texture.
specular_texture (gs.textures.Texture | None, optional) – Specular texture of the surface.
diffuse_texture (gs.textures.Texture | None, optional) – Diffuse texture of the surface.
transmission_texture (gs.textures.Texture | None, optional) – Transmission texture of the surface.
thickness_texture (gs.textures.Texture | None, optional) – The thickness texture of the top 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.