class_gltfspecgloss.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.1/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.1/modules/gltf/doc_classes/GLTFSpecGloss.xml.
  6. .. _class_GLTFSpecGloss:
  7. GLTFSpecGloss
  8. =============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Archived GLTF extension for specular/glossy materials.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - `KHR_materials_pbrSpecularGlossiness GLTF extension spec <https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness>`__
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------+----------------------------------------------------------------------+-----------------------+
  25. | :ref:`Color<class_Color>` | :ref:`diffuse_factor<class_GLTFSpecGloss_property_diffuse_factor>` | ``Color(1, 1, 1, 1)`` |
  26. +---------------------------+----------------------------------------------------------------------+-----------------------+
  27. | :ref:`Image<class_Image>` | :ref:`diffuse_img<class_GLTFSpecGloss_property_diffuse_img>` | |
  28. +---------------------------+----------------------------------------------------------------------+-----------------------+
  29. | :ref:`float<class_float>` | :ref:`gloss_factor<class_GLTFSpecGloss_property_gloss_factor>` | ``1.0`` |
  30. +---------------------------+----------------------------------------------------------------------+-----------------------+
  31. | :ref:`Image<class_Image>` | :ref:`spec_gloss_img<class_GLTFSpecGloss_property_spec_gloss_img>` | |
  32. +---------------------------+----------------------------------------------------------------------+-----------------------+
  33. | :ref:`Color<class_Color>` | :ref:`specular_factor<class_GLTFSpecGloss_property_specular_factor>` | ``Color(1, 1, 1, 1)`` |
  34. +---------------------------+----------------------------------------------------------------------+-----------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_GLTFSpecGloss_property_diffuse_factor:
  41. .. rst-class:: classref-property
  42. :ref:`Color<class_Color>` **diffuse_factor** = ``Color(1, 1, 1, 1)``
  43. .. rst-class:: classref-property-setget
  44. - void **set_diffuse_factor** **(** :ref:`Color<class_Color>` value **)**
  45. - :ref:`Color<class_Color>` **get_diffuse_factor** **(** **)**
  46. The reflected diffuse factor of the material.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_GLTFSpecGloss_property_diffuse_img:
  50. .. rst-class:: classref-property
  51. :ref:`Image<class_Image>` **diffuse_img**
  52. .. rst-class:: classref-property-setget
  53. - void **set_diffuse_img** **(** :ref:`Image<class_Image>` value **)**
  54. - :ref:`Image<class_Image>` **get_diffuse_img** **(** **)**
  55. The diffuse texture.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_GLTFSpecGloss_property_gloss_factor:
  59. .. rst-class:: classref-property
  60. :ref:`float<class_float>` **gloss_factor** = ``1.0``
  61. .. rst-class:: classref-property-setget
  62. - void **set_gloss_factor** **(** :ref:`float<class_float>` value **)**
  63. - :ref:`float<class_float>` **get_gloss_factor** **(** **)**
  64. The glossiness or smoothness of the material.
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_GLTFSpecGloss_property_spec_gloss_img:
  68. .. rst-class:: classref-property
  69. :ref:`Image<class_Image>` **spec_gloss_img**
  70. .. rst-class:: classref-property-setget
  71. - void **set_spec_gloss_img** **(** :ref:`Image<class_Image>` value **)**
  72. - :ref:`Image<class_Image>` **get_spec_gloss_img** **(** **)**
  73. The specular-glossiness texture.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_GLTFSpecGloss_property_specular_factor:
  77. .. rst-class:: classref-property
  78. :ref:`Color<class_Color>` **specular_factor** = ``Color(1, 1, 1, 1)``
  79. .. rst-class:: classref-property-setget
  80. - void **set_specular_factor** **(** :ref:`Color<class_Color>` value **)**
  81. - :ref:`Color<class_Color>` **get_specular_factor** **(** **)**
  82. The specular RGB color of the material. The alpha channel is unused.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  88. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  89. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`