mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (705b7a0)
This commit is contained in:
@@ -75,7 +75,7 @@ Enumerations
|
||||
|
||||
.. rst-class:: classref-enumeration
|
||||
|
||||
enum **Mode**:
|
||||
enum **Mode**: :ref:`🔗<enum_Shader_Mode>`
|
||||
|
||||
.. _class_Shader_constant_MODE_SPATIAL:
|
||||
|
||||
@@ -130,7 +130,7 @@ Property Descriptions
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`String<class_String>` **code** = ``""``
|
||||
:ref:`String<class_String>` **code** = ``""`` :ref:`🔗<class_Shader_property_code>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -152,7 +152,7 @@ Method Descriptions
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Texture2D<class_Texture2D>` **get_default_texture_parameter**\ (\ name\: :ref:`StringName<class_StringName>`, index\: :ref:`int<class_int>` = 0\ ) |const|
|
||||
:ref:`Texture2D<class_Texture2D>` **get_default_texture_parameter**\ (\ name\: :ref:`StringName<class_StringName>`, index\: :ref:`int<class_int>` = 0\ ) |const| :ref:`🔗<class_Shader_method_get_default_texture_parameter>`
|
||||
|
||||
Returns the texture that is set as default for the specified parameter.
|
||||
|
||||
@@ -168,7 +168,7 @@ Returns the texture that is set as default for the specified parameter.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Mode<enum_Shader_Mode>` **get_mode**\ (\ ) |const|
|
||||
:ref:`Mode<enum_Shader_Mode>` **get_mode**\ (\ ) |const| :ref:`🔗<class_Shader_method_get_mode>`
|
||||
|
||||
Returns the shader mode for the shader.
|
||||
|
||||
@@ -180,7 +180,7 @@ Returns the shader mode for the shader.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Array<class_Array>` **get_shader_uniform_list**\ (\ get_groups\: :ref:`bool<class_bool>` = false\ )
|
||||
:ref:`Array<class_Array>` **get_shader_uniform_list**\ (\ get_groups\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_Shader_method_get_shader_uniform_list>`
|
||||
|
||||
Get the list of shader uniforms that can be assigned to a :ref:`ShaderMaterial<class_ShaderMaterial>`, for use with :ref:`ShaderMaterial.set_shader_parameter<class_ShaderMaterial_method_set_shader_parameter>` and :ref:`ShaderMaterial.get_shader_parameter<class_ShaderMaterial_method_get_shader_parameter>`. The parameters returned are contained in dictionaries in a similar format to the ones returned by :ref:`Object.get_property_list<class_Object_method_get_property_list>`.
|
||||
|
||||
@@ -194,7 +194,7 @@ If argument ``get_groups`` is true, parameter grouping hints will be provided.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **set_default_texture_parameter**\ (\ name\: :ref:`StringName<class_StringName>`, texture\: :ref:`Texture2D<class_Texture2D>`, index\: :ref:`int<class_int>` = 0\ )
|
||||
|void| **set_default_texture_parameter**\ (\ name\: :ref:`StringName<class_StringName>`, texture\: :ref:`Texture2D<class_Texture2D>`, index\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_Shader_method_set_default_texture_parameter>`
|
||||
|
||||
Sets the default texture to be used with a texture uniform. The default is used if a texture is not set in the :ref:`ShaderMaterial<class_ShaderMaterial>`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user