Unity Products:Amplify Shader Editor/World To Object Matrix and Unity Products:Amplify Shader Editor/World Transform Params: Difference between pages

From Amplify Creations Wiki
(Difference between pages)
Jump to navigation Jump to search
ampwiki>Amplify RnD Rick
No edit summary
 
m (1 revision imported)
 
Line 1: Line 1:
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]


== World To Object Matrix Node ==
== World Transform Params Node ==


The World To Object Matrix node outputs the current inverse model matrix which can be used to transform either a position or direction vector from world space to object/local space.
The World Transform Params node contains information about the current transform, more specifically W is usually 1.0, or -1.0 for odd-negative scale transforms


'''NOTE:''' We advise using either the [[Unity_Products:Amplify_Shader_Editor/Transform_Position|Transform Position]] or [[Unity_Products:Amplify_Shader_Editor/Transform_Direction|Transform Direction]] as they are easier to use and you wont need to do an explicit multiplication between matrix and position/direction value.
<img class="responsive-img" src="http://wiki.amplify.pt/images/Nodes/WorldTransformParams.jpg">
 
<img class="responsive-img" src="http://wiki.amplify.pt/images/Nodes/WorldToObjectMatrix.jpg">


{| class="wikitable" style="width: 100%;"
{| class="wikitable" style="width: 100%;"
Line 13: Line 11:
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type
|-  
|-  
| Out
| X
| Returns current inverse model matrix value.
| (Unknown)
| Matrix4x4
| Float
|-
| Y
| (Unknown)
| Float
|-
| Z
| (Unknown)
| Float
|-
| W
| This channel is usually 1.0, or -1.0 for odd-negative scale transforms.
| Float
|}
|}




[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List ]]
[[Category:Nodes]][[Category:Matrix Transform]]
[[Category:Nodes]][[Category:Object Transform]]

Latest revision as of 00:06, 2 December 2023

Back to Node List

World Transform Params Node

The World Transform Params node contains information about the current transform, more specifically W is usually 1.0, or -1.0 for odd-negative scale transforms

Output Port Description Type
X (Unknown) Float
Y (Unknown) Float
Z (Unknown) Float
W This channel is usually 1.0, or -1.0 for odd-negative scale transforms. Float


Back to Node List