Unity Products:Amplify Shader Editor/Screen Position

From Amplify Creations Wiki
Revision as of 16:52, 24 October 2017 by ampwiki>Amplify RnD Rick (→‎Screen Position Node)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Screen Position Node

The Screen Position node outputs the screen position of the current pixel. According to the selected Type parameter the position value can be either in Screen Coordinates, [ 0, Screen Width - 1 ] for X axis and [ 0, Screen Height -1 ] for Y axis, or in a normalized [0,1] range for both axis.



Nodes used: Screen Position, Screen Params, Texel Size, Multiply, Component Mask, Texture Sample

Node Parameter Description Default Value
Type Defines how the screen position value should be presented
  • Normalized: Position value is set on a [0,1] range for both x and y axis.
  • Screen: Position value is set according to actual screen size.
Normalized


Output Port Description Type
XYZW Returns the Screen Position value Float4
X Returns only the X component of the Screen Position Float
Y Returns only the Y component of the Screen Position Float
Z Returns only the Z component of the Screen Position Float
W Returns only the W component of the Screen Position Float


Back to Node List