# {py:mod}`simvx.core.graphics.material` ```{py:module} simvx.core.graphics.material ``` ```{autodoc2-docstring} simvx.core.graphics.material :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`Material ` - ```{autodoc2-docstring} simvx.core.graphics.material.Material :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.core.graphics.material.log :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.core.graphics.material.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.core.graphics.material.log ``` ```` `````{py:class} Material(colour: tuple[float, ...] | numpy.ndarray = (1.0, 1.0, 1.0, 1.0), metallic: float = 0.0, roughness: float = 0.5, blend: typing.Literal[opaque, alpha, additive] = 'opaque', wireframe: bool = False, double_sided: bool = False, unlit: bool = False, albedo_map: str | bytes | None = None, normal_map: str | bytes | None = None, metallic_roughness_map: str | bytes | None = None, emissive_map: str | bytes | None = None, ao_map: str | bytes | None = None, emissive_colour: tuple[float, ...] | None = None) :canonical: simvx.core.graphics.material.Material ```{autodoc2-docstring} simvx.core.graphics.material.Material ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.graphics.material.Material.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.graphics.material.Material.__slots__ :value: > ('_uid', 'colour', 'metallic', 'roughness', 'blend', 'wireframe', 'double_sided', 'unlit', 'albedo_u... ```{autodoc2-docstring} simvx.core.graphics.material.Material.__slots__ ``` ```` ````{py:property} content_key :canonical: simvx.core.graphics.material.Material.content_key :type: tuple ```{autodoc2-docstring} simvx.core.graphics.material.Material.content_key ``` ```` ````{py:property} colour_bytes :canonical: simvx.core.graphics.material.Material.colour_bytes :type: bytes ```{autodoc2-docstring} simvx.core.graphics.material.Material.colour_bytes ``` ```` ````{py:method} to_dict() -> dict :canonical: simvx.core.graphics.material.Material.to_dict ```{autodoc2-docstring} simvx.core.graphics.material.Material.to_dict ``` ```` ````{py:method} from_dict(d: dict) -> simvx.core.graphics.material.Material :canonical: simvx.core.graphics.material.Material.from_dict :classmethod: ```{autodoc2-docstring} simvx.core.graphics.material.Material.from_dict ``` ```` `````