:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/gltf/doc_classes/GLTFSpecGloss.xml. .. _class_GLTFSpecGloss: GLTFSpecGloss ============= **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` .. rst-class:: classref-introduction-group Description ----------- **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to **GLTFSpecGloss** within a script will cause an error in an exported project. .. rst-class:: classref-introduction-group Tutorials --------- - `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 )`` .. rst-class:: classref-property-setget - void **set_diffuse_factor** **(** :ref:`Color` value **)** - :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** .. rst-class:: classref-property-setget - void **set_diffuse_img** **(** :ref:`Image` value **)** - :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`` .. rst-class:: classref-property-setget - void **set_gloss_factor** **(** :ref:`float` value **)** - :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** .. rst-class:: classref-property-setget - void **set_spec_gloss_img** **(** :ref:`Image` value **)** - :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 )`` .. rst-class:: classref-property-setget - void **set_specular_factor** **(** :ref:`Color` value **)** - :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.)` .. |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.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`