|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<class name="VisualShaderNodeVectorCoordinateTransform" inherits="VisualShaderNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | + <brief_description> |
| 4 | + Transforms a [Vector3] from one coordinate space to another. |
| 5 | + </brief_description> |
| 6 | + <description> |
| 7 | + Transforms a position or direction [Vector3] from one coordinate space to another. See also [VisualShaderNodeTransformVecMult]. |
| 8 | + </description> |
| 9 | + <tutorials> |
| 10 | + </tutorials> |
| 11 | + <members> |
| 12 | + <member name="from_space" type="int" setter="set_from_space" getter="get_from_space" enum="VisualShaderNodeVectorCoordinateTransform.Space" default="0"> |
| 13 | + Coordinate space to transform from. |
| 14 | + </member> |
| 15 | + <member name="normalize_output" type="bool" setter="set_normalize_output" getter="get_normalize_output" default="true"> |
| 16 | + If vector type is set to direction, you can reduce the length of the output vector to 1. |
| 17 | + </member> |
| 18 | + <member name="to_space" type="int" setter="set_to_space" getter="get_to_space" enum="VisualShaderNodeVectorCoordinateTransform.Space" default="0"> |
| 19 | + Coordinate space to transform to. |
| 20 | + </member> |
| 21 | + <member name="vector_type" type="int" setter="set_vector_type" getter="get_vector_type" enum="VisualShaderNodeVectorCoordinateTransform.VectorType" default="0"> |
| 22 | + Type of the vector to transform, either position or direction. |
| 23 | + </member> |
| 24 | + </members> |
| 25 | + <constants> |
| 26 | + <constant name="SPACE_MODEL" value="0" enum="Space"> |
| 27 | + Model space. |
| 28 | + </constant> |
| 29 | + <constant name="SPACE_WORLD" value="1" enum="Space"> |
| 30 | + World space. |
| 31 | + </constant> |
| 32 | + <constant name="SPACE_VIEW" value="2" enum="Space"> |
| 33 | + View space. |
| 34 | + </constant> |
| 35 | + <constant name="SPACE_TANGENT" value="3" enum="Space"> |
| 36 | + Tangent space. |
| 37 | + </constant> |
| 38 | + <constant name="SPACE_SCREEN" value="4" enum="Space"> |
| 39 | + Screen space. |
| 40 | + </constant> |
| 41 | + <constant name="SPACE_MAX" value="5" enum="Space"> |
| 42 | + Represents the size of the [enum Space] enum. |
| 43 | + </constant> |
| 44 | + <constant name="VECTOR_TYPE_POSITION" value="0" enum="VectorType"> |
| 45 | + A position vector. |
| 46 | + </constant> |
| 47 | + <constant name="VECTOR_TYPE_DIRECTION" value="1" enum="VectorType"> |
| 48 | + A direction vector, such as a normal vector. |
| 49 | + </constant> |
| 50 | + <constant name="VECTOR_TYPE_MAX" value="2" enum="VectorType"> |
| 51 | + Represents the size of the [enum VectorType] enum. |
| 52 | + </constant> |
| 53 | + </constants> |
| 54 | +</class> |
0 commit comments