forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working version Fix copy paste error Change TransformVecMult to output vec4, generate docs Some more docs. Suggestion: remove unnecessary default Co-authored-by: A Thousand Ships <[email protected]>
- Loading branch information
1 parent
621cadc
commit e619ebd
Showing
6 changed files
with
317 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="VisualShaderNodeCoordinateSpaceHelper" inherits="VisualShaderNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> | ||
<brief_description> | ||
Transforms a vector from one coordinate space to another. | ||
</brief_description> | ||
<description> | ||
Transforms a vector from one coordinate space to another. See also [VisualShaderNodeTransformVecMult]. | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<members> | ||
<member name="from_space" type="int" setter="set_from_space" getter="get_from_space" enum="VisualShaderNodeCoordinateSpaceHelper.Space" default="0"> | ||
Coordinate space to transform from. | ||
</member> | ||
<member name="to_space" type="int" setter="set_to_space" getter="get_to_space" enum="VisualShaderNodeCoordinateSpaceHelper.Space" default="0"> | ||
Coordinate space to transform to. | ||
</member> | ||
<member name="vector_type" type="int" setter="set_vector_type" getter="get_vector_type" enum="VisualShaderNodeCoordinateSpaceHelper.VectorType" default="0"> | ||
Type of the vector to transform, either position or direction. | ||
</member> | ||
</members> | ||
<constants> | ||
<constant name="SPACE_MODEL" value="0" enum="Space"> | ||
Model space. | ||
</constant> | ||
<constant name="SPACE_WORLD" value="1" enum="Space"> | ||
World space. | ||
</constant> | ||
<constant name="SPACE_VIEW" value="2" enum="Space"> | ||
View space. | ||
</constant> | ||
<constant name="SPACE_CLIP" value="3" enum="Space"> | ||
Clip space. | ||
</constant> | ||
<constant name="SPACE_MAX" value="4" enum="Space"> | ||
Represents the size of the [enum Space] enum. | ||
</constant> | ||
<constant name="VECTOR_POSITION" value="0" enum="VectorType"> | ||
A position vector. | ||
</constant> | ||
<constant name="VECTOR_DIRECTION" value="1" enum="VectorType"> | ||
A direction vector, such as a normal vector. | ||
</constant> | ||
<constant name="VECTOR_MAX" value="2" enum="VectorType"> | ||
Represents the size of the [enum VectorType] enum. | ||
</constant> | ||
</constants> | ||
</class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.