.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/Shader.xml. .. _class_Shader: Shader ====== **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`VisualShader` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-----------------------------+-----------------------------------------+--------+ | :ref:`String` | :ref:`code` | ``""`` | +-----------------------------+-----------------------------------------+--------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture2D` | :ref:`get_default_texture_parameter` **(** :ref:`StringName` name, :ref:`int` index=0 **)** |const| | +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Mode` | :ref:`get_mode` **(** **)** |const| | +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_shader_uniform_list` **(** :ref:`bool` get_groups=false **)** | +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_default_texture_parameter` **(** :ref:`StringName` name, :ref:`Texture2D` texture, :ref:`int` index=0 **)** | +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_Shader_Mode: .. rst-class:: classref-enumeration enum **Mode**: .. _class_Shader_constant_MODE_SPATIAL: .. rst-class:: classref-enumeration-constant :ref:`Mode` **MODE_SPATIAL** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Shader_constant_MODE_CANVAS_ITEM: .. rst-class:: classref-enumeration-constant :ref:`Mode` **MODE_CANVAS_ITEM** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Shader_constant_MODE_PARTICLES: .. rst-class:: classref-enumeration-constant :ref:`Mode` **MODE_PARTICLES** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Shader_constant_MODE_SKY: .. rst-class:: classref-enumeration-constant :ref:`Mode` **MODE_SKY** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_Shader_constant_MODE_FOG: .. rst-class:: classref-enumeration-constant :ref:`Mode` **MODE_FOG** = ``4`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_Shader_property_code: .. rst-class:: classref-property :ref:`String` **code** = ``""`` .. rst-class:: classref-property-setget - void **set_code** **(** :ref:`String` value **)** - :ref:`String` **get_code** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_Shader_method_get_default_texture_parameter: .. rst-class:: classref-method :ref:`Texture2D` **get_default_texture_parameter** **(** :ref:`StringName` name, :ref:`int` index=0 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Shader_method_get_mode: .. rst-class:: classref-method :ref:`Mode` **get_mode** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Shader_method_get_shader_uniform_list: .. rst-class:: classref-method :ref:`Array` **get_shader_uniform_list** **(** :ref:`bool` get_groups=false **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Shader_method_set_default_texture_parameter: .. rst-class:: classref-method void **set_default_texture_parameter** **(** :ref:`StringName` name, :ref:`Texture2D` texture, :ref:`int` index=0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`