mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
106 lines
3.5 KiB
ReStructuredText
106 lines
3.5 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. DO NOT EDIT THIS FILE!!!
|
||
.. Generated automatically from Godot engine sources.
|
||
.. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
|
||
.. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/VisualShaderNodeSample3D.xml.
|
||
|
||
.. _class_VisualShaderNodeSample3D:
|
||
|
||
VisualShaderNodeSample3D
|
||
========================
|
||
|
||
**继承:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||
|
||
**派生:** :ref:`VisualShaderNodeTexture2DArray<class_VisualShaderNodeTexture2DArray>`, :ref:`VisualShaderNodeTexture3D<class_VisualShaderNodeTexture3D>`
|
||
|
||
可视化着色器图中,对 3D 纹理进行采样的节点的基础节点。
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
描述
|
||
----
|
||
|
||
虚类,请改用其派生类。
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
属性
|
||
----
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-----------------------------------------------------+---------------------------------------------------------------+-------+
|
||
| :ref:`Source<enum_VisualShaderNodeSample3D_Source>` | :ref:`source<class_VisualShaderNodeSample3D_property_source>` | ``0`` |
|
||
+-----------------------------------------------------+---------------------------------------------------------------+-------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
枚举
|
||
----
|
||
|
||
.. _enum_VisualShaderNodeSample3D_Source:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **Source**:
|
||
|
||
.. _class_VisualShaderNodeSample3D_constant_SOURCE_TEXTURE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Source<enum_VisualShaderNodeSample3D_Source>` **SOURCE_TEXTURE** = ``0``
|
||
|
||
创建内部 uniform,提供一种在节点内赋值的方式。
|
||
|
||
.. _class_VisualShaderNodeSample3D_constant_SOURCE_PORT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Source<enum_VisualShaderNodeSample3D_Source>` **SOURCE_PORT** = ``1``
|
||
|
||
使用采样器端口的 uniform 纹理。
|
||
|
||
.. _class_VisualShaderNodeSample3D_constant_SOURCE_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`Source<enum_VisualShaderNodeSample3D_Source>` **SOURCE_MAX** = ``2``
|
||
|
||
代表 :ref:`Source<enum_VisualShaderNodeSample3D_Source>` 枚举的大小。
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
属性说明
|
||
--------
|
||
|
||
.. _class_VisualShaderNodeSample3D_property_source:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Source<enum_VisualShaderNodeSample3D_Source>` **source** = ``0``
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- void **set_source** **(** :ref:`Source<enum_VisualShaderNodeSample3D_Source>` value **)**
|
||
- :ref:`Source<enum_VisualShaderNodeSample3D_Source>` **get_source** **(** **)**
|
||
|
||
输入源的类型。
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||
.. |const| replace:: :abbr:`const (本方法没有副作用。不会修改该实例的任何成员变量。)`
|
||
.. |vararg| replace:: :abbr:`vararg (本方法除了在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||
.. |static| replace:: :abbr:`static (调用本方法无需实例,所以可以直接使用类名调用。)`
|
||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|