Unity Products:Amplify Shader Editor/Transform Position

From Amplify Creations Wiki
Jump to navigation Jump to search

Back to Node List

Transform Position Node

This node transforms position values from one space to another. In cases of more complex transformation it deals with any intermediate transformation that is necessary as well as float4 to float3 conversions. It also deals with different rendering path shader logic like HD SRP with relative camera rendering.

Node Parameter Description Default Value
From Current space from which input vector is on.
  • Object Space: Sets input position space to Object space
  • World Space: Sets input position space to World space
  • View Space: Sets input position space to View space
  • Tangent: Sets input position space to Tangent space
Object Space
To Space for the position to be transformed to.
  • Object Space: Sets output position space to Object space
  • World Space: Sets output position space to World space
  • View Space: Sets output position space to View space
  • Tangent: Sets output position space to Tangent space
  • Clip: Sets output position space to Clip space
Object Space
Inverse TBN To transform from tangent to another space an inverse TBN matrix(Tangent,Binormal,Normal) must be calculated. Inverting matrices in an heavy operation but in this transforms case it can be simplified at the cost of some precision loss. (Only shown on when From is set to Tangent).
  • Fast: More performant but less precise inverse TBN matrix generation.
  • Precise: Inverse TBN matrix generation created through fully mathematical matrix inversion operation.
Fast
Input Position vector in selected input space to be transformed into selected output space. Only visible if the respective input port is not connected. 0,0,0
Input Port Description Type
Input Position vector in selected input space to be transformed into selected output space. Float3
Output Port Description Type
XYZ Returns the transformed value in the selected output space. Float3
X Returns only the X component of the transformed value in the selected output space. Float
Y Returns only the Y component of the transformed value in the selected output space. Float
Z Returns only the Z component of the transformed value in the selected output space. Float

Back to Node List