Unity Products:Amplify Shader Editor/Screen Position

From Amplify Creations Wiki
Jump to: navigation, 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