class_gltfspecgloss.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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. - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
  19. - `KHR_materials_pbrSpecularGlossiness glTF extension spec <https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness>`__
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------+----------------------------------------------------------------------+-----------------------+
  26. | :ref:`Color<class_Color>` | :ref:`diffuse_factor<class_GLTFSpecGloss_property_diffuse_factor>` | ``Color(1, 1, 1, 1)`` |
  27. +---------------------------+----------------------------------------------------------------------+-----------------------+
  28. | :ref:`Image<class_Image>` | :ref:`diffuse_img<class_GLTFSpecGloss_property_diffuse_img>` | |
  29. +---------------------------+----------------------------------------------------------------------+-----------------------+
  30. | :ref:`float<class_float>` | :ref:`gloss_factor<class_GLTFSpecGloss_property_gloss_factor>` | ``1.0`` |
  31. +---------------------------+----------------------------------------------------------------------+-----------------------+
  32. | :ref:`Image<class_Image>` | :ref:`spec_gloss_img<class_GLTFSpecGloss_property_spec_gloss_img>` | |
  33. +---------------------------+----------------------------------------------------------------------+-----------------------+
  34. | :ref:`Color<class_Color>` | :ref:`specular_factor<class_GLTFSpecGloss_property_specular_factor>` | ``Color(1, 1, 1, 1)`` |
  35. +---------------------------+----------------------------------------------------------------------+-----------------------+
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Property Descriptions
  40. ---------------------
  41. .. _class_GLTFSpecGloss_property_diffuse_factor:
  42. .. rst-class:: classref-property
  43. :ref:`Color<class_Color>` **diffuse_factor** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_GLTFSpecGloss_property_diffuse_factor>`
  44. .. rst-class:: classref-property-setget
  45. - |void| **set_diffuse_factor**\ (\ value\: :ref:`Color<class_Color>`\ )
  46. - :ref:`Color<class_Color>` **get_diffuse_factor**\ (\ )
  47. The reflected diffuse factor of the material.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_GLTFSpecGloss_property_diffuse_img:
  51. .. rst-class:: classref-property
  52. :ref:`Image<class_Image>` **diffuse_img** :ref:`🔗<class_GLTFSpecGloss_property_diffuse_img>`
  53. .. rst-class:: classref-property-setget
  54. - |void| **set_diffuse_img**\ (\ value\: :ref:`Image<class_Image>`\ )
  55. - :ref:`Image<class_Image>` **get_diffuse_img**\ (\ )
  56. The diffuse texture.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_GLTFSpecGloss_property_gloss_factor:
  60. .. rst-class:: classref-property
  61. :ref:`float<class_float>` **gloss_factor** = ``1.0`` :ref:`🔗<class_GLTFSpecGloss_property_gloss_factor>`
  62. .. rst-class:: classref-property-setget
  63. - |void| **set_gloss_factor**\ (\ value\: :ref:`float<class_float>`\ )
  64. - :ref:`float<class_float>` **get_gloss_factor**\ (\ )
  65. The glossiness or smoothness of the material.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_GLTFSpecGloss_property_spec_gloss_img:
  69. .. rst-class:: classref-property
  70. :ref:`Image<class_Image>` **spec_gloss_img** :ref:`🔗<class_GLTFSpecGloss_property_spec_gloss_img>`
  71. .. rst-class:: classref-property-setget
  72. - |void| **set_spec_gloss_img**\ (\ value\: :ref:`Image<class_Image>`\ )
  73. - :ref:`Image<class_Image>` **get_spec_gloss_img**\ (\ )
  74. The specular-glossiness texture.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_GLTFSpecGloss_property_specular_factor:
  78. .. rst-class:: classref-property
  79. :ref:`Color<class_Color>` **specular_factor** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_GLTFSpecGloss_property_specular_factor>`
  80. .. rst-class:: classref-property-setget
  81. - |void| **set_specular_factor**\ (\ value\: :ref:`Color<class_Color>`\ )
  82. - :ref:`Color<class_Color>` **get_specular_factor**\ (\ )
  83. The specular RGB color of the material. The alpha channel is unused.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  87. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  88. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  89. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  90. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  91. .. |void| replace:: :abbr:`void (No return value.)`