mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
78 lines
3.4 KiB
ReStructuredText
78 lines
3.4 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the VisualShaderNodeTransformVecMult.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult:
|
|
|
|
VisualShaderNodeTransformVecMult
|
|
================================
|
|
|
|
**Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
|
|
|
Multiplies a :ref:`Transform3D<class_Transform3D>` and a :ref:`Vector3<class_Vector3>` within the visual shader graph.
|
|
|
|
Description
|
|
-----------
|
|
|
|
A multiplication operation on a transform (4x4 matrix) and a vector, with support for different multiplication operators.
|
|
|
|
Properties
|
|
----------
|
|
|
|
+-----------------------------------------------------------------+---------------------------------------------------------------------------+-------+
|
|
| :ref:`Operator<enum_VisualShaderNodeTransformVecMult_Operator>` | :ref:`operator<class_VisualShaderNodeTransformVecMult_property_operator>` | ``0`` |
|
|
+-----------------------------------------------------------------+---------------------------------------------------------------------------+-------+
|
|
|
|
Enumerations
|
|
------------
|
|
|
|
.. _enum_VisualShaderNodeTransformVecMult_Operator:
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_constant_OP_AxB:
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_constant_OP_BxA:
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_constant_OP_3x3_AxB:
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_constant_OP_3x3_BxA:
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_constant_OP_MAX:
|
|
|
|
enum **Operator**:
|
|
|
|
- **OP_AxB** = **0** --- Multiplies transform ``a`` by the vector ``b``.
|
|
|
|
- **OP_BxA** = **1** --- Multiplies vector ``b`` by the transform ``a``.
|
|
|
|
- **OP_3x3_AxB** = **2** --- Multiplies transform ``a`` by the vector ``b``, skipping the last row and column of the transform.
|
|
|
|
- **OP_3x3_BxA** = **3** --- Multiplies vector ``b`` by the transform ``a``, skipping the last row and column of the transform.
|
|
|
|
- **OP_MAX** = **4** --- Represents the size of the :ref:`Operator<enum_VisualShaderNodeTransformVecMult_Operator>` enum.
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_VisualShaderNodeTransformVecMult_property_operator:
|
|
|
|
- :ref:`Operator<enum_VisualShaderNodeTransformVecMult_Operator>` **operator**
|
|
|
|
+-----------+---------------------+
|
|
| *Default* | ``0`` |
|
|
+-----------+---------------------+
|
|
| *Setter* | set_operator(value) |
|
|
+-----------+---------------------+
|
|
| *Getter* | get_operator() |
|
|
+-----------+---------------------+
|
|
|
|
The multiplication type to be performed. See :ref:`Operator<enum_VisualShaderNodeTransformVecMult_Operator>` for options.
|
|
|
|
.. |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.)`
|