class_material.rst 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Material.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Material:
  5. Material
  6. ========
  7. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Inherited By:** :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`, :ref:`ParticlesMaterial<class_ParticlesMaterial>`, :ref:`ShaderMaterial<class_ShaderMaterial>`, :ref:`SpatialMaterial<class_SpatialMaterial>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Abstract base :ref:`Resource<class_Resource>` for coloring and shading geometry.
  13. Properties
  14. ----------
  15. +---------------------------------+-----------------------------------------------------------------+
  16. | :ref:`Material<class_Material>` | :ref:`next_pass<class_Material_property_next_pass>` |
  17. +---------------------------------+-----------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`render_priority<class_Material_property_render_priority>` |
  19. +---------------------------------+-----------------------------------------------------------------+
  20. Constants
  21. ---------
  22. .. _class_Material_constant_RENDER_PRIORITY_MAX:
  23. .. _class_Material_constant_RENDER_PRIORITY_MIN:
  24. - **RENDER_PRIORITY_MAX** = **127**
  25. - **RENDER_PRIORITY_MIN** = **-128**
  26. Description
  27. -----------
  28. Material is a base :ref:`Resource<class_Resource>` used for coloring and shading geometry. All materials inherit from it and almost all :ref:`VisualInstance<class_VisualInstance>` derived nodes carry a Material. A few flags and parameters are shared between all material types and are configured here.
  29. Property Descriptions
  30. ---------------------
  31. .. _class_Material_property_next_pass:
  32. - :ref:`Material<class_Material>` **next_pass**
  33. +----------+----------------------+
  34. | *Setter* | set_next_pass(value) |
  35. +----------+----------------------+
  36. | *Getter* | get_next_pass() |
  37. +----------+----------------------+
  38. .. _class_Material_property_render_priority:
  39. - :ref:`int<class_int>` **render_priority**
  40. +----------+----------------------------+
  41. | *Setter* | set_render_priority(value) |
  42. +----------+----------------------------+
  43. | *Getter* | get_render_priority() |
  44. +----------+----------------------------+