:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/modules/gltf/doc_classes/GLTFSpecGloss.xml. .. _class_GLTFSpecGloss: GLTFSpecGloss ============= **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` Archived glTF extension for specular/glossy materials. .. rst-class:: classref-introduction-group Description ----------- KHR_materials_pbrSpecularGlossiness is an archived glTF extension. This means that it is deprecated and not recommended for new files. However, it is still supported for loading old files. .. rst-class:: classref-introduction-group Tutorials --------- - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>` - `KHR_materials_pbrSpecularGlossiness glTF extension spec `__ .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+----------------------------------------------------------------------+-----------------------+ | :ref:`Color` | :ref:`diffuse_factor` | ``Color(1, 1, 1, 1)`` | +---------------------------+----------------------------------------------------------------------+-----------------------+ | :ref:`Image` | :ref:`diffuse_img` | | +---------------------------+----------------------------------------------------------------------+-----------------------+ | :ref:`float` | :ref:`gloss_factor` | ``1.0`` | +---------------------------+----------------------------------------------------------------------+-----------------------+ | :ref:`Image` | :ref:`spec_gloss_img` | | +---------------------------+----------------------------------------------------------------------+-----------------------+ | :ref:`Color` | :ref:`specular_factor` | ``Color(1, 1, 1, 1)`` | +---------------------------+----------------------------------------------------------------------+-----------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_GLTFSpecGloss_property_diffuse_factor: .. rst-class:: classref-property :ref:`Color` **diffuse_factor** = ``Color(1, 1, 1, 1)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_diffuse_factor**\ (\ value\: :ref:`Color`\ ) - :ref:`Color` **get_diffuse_factor**\ (\ ) The reflected diffuse factor of the material. .. rst-class:: classref-item-separator ---- .. _class_GLTFSpecGloss_property_diffuse_img: .. rst-class:: classref-property :ref:`Image` **diffuse_img** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_diffuse_img**\ (\ value\: :ref:`Image`\ ) - :ref:`Image` **get_diffuse_img**\ (\ ) The diffuse texture. .. rst-class:: classref-item-separator ---- .. _class_GLTFSpecGloss_property_gloss_factor: .. rst-class:: classref-property :ref:`float` **gloss_factor** = ``1.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_gloss_factor**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_gloss_factor**\ (\ ) The glossiness or smoothness of the material. .. rst-class:: classref-item-separator ---- .. _class_GLTFSpecGloss_property_spec_gloss_img: .. rst-class:: classref-property :ref:`Image` **spec_gloss_img** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_spec_gloss_img**\ (\ value\: :ref:`Image`\ ) - :ref:`Image` **get_spec_gloss_img**\ (\ ) The specular-glossiness texture. .. rst-class:: classref-item-separator ---- .. _class_GLTFSpecGloss_property_specular_factor: .. rst-class:: classref-property :ref:`Color` **specular_factor** = ``Color(1, 1, 1, 1)`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_specular_factor**\ (\ value\: :ref:`Color`\ ) - :ref:`Color` **get_specular_factor**\ (\ ) The specular RGB color of the material. The alpha channel is unused. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`