mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
72 lines
3.0 KiB
ReStructuredText
72 lines
3.0 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the Shader.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_Shader:
|
|
|
|
Shader
|
|
======
|
|
|
|
**Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
To be changed, ignore.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Texture<class_texture>` | :ref:`get_default_texture_param<class_Shader_get_default_texture_param>` **(** :ref:`String<class_string>` param **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_mode<class_Shader_get_mode>` **(** **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`has_param<class_Shader_has_param>` **(** :ref:`String<class_string>` name **)** const |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_default_texture_param<class_Shader_set_default_texture_param>` **(** :ref:`String<class_string>` param, :ref:`Texture<class_texture>` texture **)** |
|
|
+--------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_Shader_code:
|
|
|
|
- :ref:`String<class_string>` **code**
|
|
|
|
|
|
Numeric Constants
|
|
-----------------
|
|
|
|
- **MODE_SPATIAL** = **0**
|
|
- **MODE_CANVAS_ITEM** = **1**
|
|
- **MODE_PARTICLES** = **2**
|
|
|
|
Description
|
|
-----------
|
|
|
|
To be changed, ignore.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_Shader_get_default_texture_param:
|
|
|
|
- :ref:`Texture<class_texture>` **get_default_texture_param** **(** :ref:`String<class_string>` param **)** const
|
|
|
|
.. _class_Shader_get_mode:
|
|
|
|
- :ref:`int<class_int>` **get_mode** **(** **)** const
|
|
|
|
.. _class_Shader_has_param:
|
|
|
|
- :ref:`bool<class_bool>` **has_param** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
.. _class_Shader_set_default_texture_param:
|
|
|
|
- void **set_default_texture_param** **(** :ref:`String<class_string>` param, :ref:`Texture<class_texture>` texture **)**
|
|
|
|
|