Files
godot-docs/classes/class_gltfspecgloss.rst
T

125 lines
5.0 KiB
ReStructuredText

: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<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Archived GLTF extension for specular/glossy materials.
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.
Tutorials
---------
- `KHR_materials_pbrSpecularGlossiness GLTF extension spec <https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness>`__
Properties
----------
+---------------------------+----------------------------------------------------------------------+-----------------------+
| :ref:`Color<class_Color>` | :ref:`diffuse_factor<class_GLTFSpecGloss_property_diffuse_factor>` | ``Color(1, 1, 1, 1)`` |
+---------------------------+----------------------------------------------------------------------+-----------------------+
| :ref:`Image<class_Image>` | :ref:`diffuse_img<class_GLTFSpecGloss_property_diffuse_img>` | |
+---------------------------+----------------------------------------------------------------------+-----------------------+
| :ref:`float<class_float>` | :ref:`gloss_factor<class_GLTFSpecGloss_property_gloss_factor>` | ``1.0`` |
+---------------------------+----------------------------------------------------------------------+-----------------------+
| :ref:`Image<class_Image>` | :ref:`spec_gloss_img<class_GLTFSpecGloss_property_spec_gloss_img>` | |
+---------------------------+----------------------------------------------------------------------+-----------------------+
| :ref:`Color<class_Color>` | :ref:`specular_factor<class_GLTFSpecGloss_property_specular_factor>` | ``Color(1, 1, 1, 1)`` |
+---------------------------+----------------------------------------------------------------------+-----------------------+
Property Descriptions
---------------------
.. _class_GLTFSpecGloss_property_diffuse_factor:
- :ref:`Color<class_Color>` **diffuse_factor**
+-----------+---------------------------+
| *Default* | ``Color(1, 1, 1, 1)`` |
+-----------+---------------------------+
| *Setter* | set_diffuse_factor(value) |
+-----------+---------------------------+
| *Getter* | get_diffuse_factor() |
+-----------+---------------------------+
The reflected diffuse factor of the material.
----
.. _class_GLTFSpecGloss_property_diffuse_img:
- :ref:`Image<class_Image>` **diffuse_img**
+----------+------------------------+
| *Setter* | set_diffuse_img(value) |
+----------+------------------------+
| *Getter* | get_diffuse_img() |
+----------+------------------------+
The diffuse texture.
----
.. _class_GLTFSpecGloss_property_gloss_factor:
- :ref:`float<class_float>` **gloss_factor**
+-----------+-------------------------+
| *Default* | ``1.0`` |
+-----------+-------------------------+
| *Setter* | set_gloss_factor(value) |
+-----------+-------------------------+
| *Getter* | get_gloss_factor() |
+-----------+-------------------------+
The glossiness or smoothness of the material.
----
.. _class_GLTFSpecGloss_property_spec_gloss_img:
- :ref:`Image<class_Image>` **spec_gloss_img**
+----------+---------------------------+
| *Setter* | set_spec_gloss_img(value) |
+----------+---------------------------+
| *Getter* | get_spec_gloss_img() |
+----------+---------------------------+
The specular-glossiness texture.
----
.. _class_GLTFSpecGloss_property_specular_factor:
- :ref:`Color<class_Color>` **specular_factor**
+-----------+----------------------------+
| *Default* | ``Color(1, 1, 1, 1)`` |
+-----------+----------------------------+
| *Setter* | set_specular_factor(value) |
+-----------+----------------------------+
| *Getter* | 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.)`
.. |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.)`