.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_Material: Material ======== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`ParticlesMaterial`, :ref:`ShaderMaterial`, :ref:`SpatialMaterial`, :ref:`CanvasItemMaterial` **Category:** Core Brief Description ----------------- Abstract base :ref:`Resource` for coloring and shading geometry. Member Functions ---------------- +----------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`Material` | :ref:`get_next_pass` **(** **)** const | +----------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_render_priority` **(** **)** const | +----------------------------------+-------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_next_pass` **(** :ref:`Material` next_pass **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_render_priority` **(** :ref:`int` priority **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Material` **next_pass** - :ref:`int` **render_priority** Numeric Constants ----------------- - **RENDER_PRIORITY_MAX** = **127** - **RENDER_PRIORITY_MIN** = **-128** Description ----------- Material is a base :ref:`Resource` used for coloring and shading geometry. All materials inherit from it and almost all :ref:`VisualInstance` derived nodes carry a Material. A few flags and parameters are shared between all material types and are configured here. Member Function Description --------------------------- .. _class_Material_get_next_pass: - :ref:`Material` **get_next_pass** **(** **)** const .. _class_Material_get_render_priority: - :ref:`int` **get_render_priority** **(** **)** const .. _class_Material_set_next_pass: - void **set_next_pass** **(** :ref:`Material` next_pass **)** .. _class_Material_set_render_priority: - void **set_render_priority** **(** :ref:`int` priority **)**