class_gltfspecgloss.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the GLTFSpecGloss.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_GLTFSpecGloss:
  6. GLTFSpecGloss
  7. =============
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Description
  10. -----------
  11. **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.
  12. Properties
  13. ----------
  14. +---------------------------+----------------------------------------------------------------------+-------------------------+
  15. | :ref:`Color<class_Color>` | :ref:`diffuse_factor<class_GLTFSpecGloss_property_diffuse_factor>` | ``Color( 1, 1, 1, 1 )`` |
  16. +---------------------------+----------------------------------------------------------------------+-------------------------+
  17. | :ref:`Image<class_Image>` | :ref:`diffuse_img<class_GLTFSpecGloss_property_diffuse_img>` | |
  18. +---------------------------+----------------------------------------------------------------------+-------------------------+
  19. | :ref:`float<class_float>` | :ref:`gloss_factor<class_GLTFSpecGloss_property_gloss_factor>` | ``1.0`` |
  20. +---------------------------+----------------------------------------------------------------------+-------------------------+
  21. | :ref:`Image<class_Image>` | :ref:`spec_gloss_img<class_GLTFSpecGloss_property_spec_gloss_img>` | |
  22. +---------------------------+----------------------------------------------------------------------+-------------------------+
  23. | :ref:`Color<class_Color>` | :ref:`specular_factor<class_GLTFSpecGloss_property_specular_factor>` | ``Color( 1, 1, 1, 1 )`` |
  24. +---------------------------+----------------------------------------------------------------------+-------------------------+
  25. Property Descriptions
  26. ---------------------
  27. .. _class_GLTFSpecGloss_property_diffuse_factor:
  28. - :ref:`Color<class_Color>` **diffuse_factor**
  29. +-----------+---------------------------+
  30. | *Default* | ``Color( 1, 1, 1, 1 )`` |
  31. +-----------+---------------------------+
  32. | *Setter* | set_diffuse_factor(value) |
  33. +-----------+---------------------------+
  34. | *Getter* | get_diffuse_factor() |
  35. +-----------+---------------------------+
  36. ----
  37. .. _class_GLTFSpecGloss_property_diffuse_img:
  38. - :ref:`Image<class_Image>` **diffuse_img**
  39. +----------+------------------------+
  40. | *Setter* | set_diffuse_img(value) |
  41. +----------+------------------------+
  42. | *Getter* | get_diffuse_img() |
  43. +----------+------------------------+
  44. ----
  45. .. _class_GLTFSpecGloss_property_gloss_factor:
  46. - :ref:`float<class_float>` **gloss_factor**
  47. +-----------+-------------------------+
  48. | *Default* | ``1.0`` |
  49. +-----------+-------------------------+
  50. | *Setter* | set_gloss_factor(value) |
  51. +-----------+-------------------------+
  52. | *Getter* | get_gloss_factor() |
  53. +-----------+-------------------------+
  54. ----
  55. .. _class_GLTFSpecGloss_property_spec_gloss_img:
  56. - :ref:`Image<class_Image>` **spec_gloss_img**
  57. +----------+---------------------------+
  58. | *Setter* | set_spec_gloss_img(value) |
  59. +----------+---------------------------+
  60. | *Getter* | get_spec_gloss_img() |
  61. +----------+---------------------------+
  62. ----
  63. .. _class_GLTFSpecGloss_property_specular_factor:
  64. - :ref:`Color<class_Color>` **specular_factor**
  65. +-----------+----------------------------+
  66. | *Default* | ``Color( 1, 1, 1, 1 )`` |
  67. +-----------+----------------------------+
  68. | *Setter* | set_specular_factor(value) |
  69. +-----------+----------------------------+
  70. | *Getter* | get_specular_factor() |
  71. +-----------+----------------------------+
  72. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  73. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  74. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`