Asset Store How to start Forum Effects Nodes Tutorials

Arithmetic


Add
Combines numbers
Output Output value
Value Input value
Value Input value
Av
Arithmetic mean, average of inputs
Output Output value
Value Input value
Value Input value
Sub
Finds difference between numbers
Output Output value
Value Input value
Value Input value
Mul
Combines multipliers and the multiplicands
Output Output value
Value Input value
Value Input value
Div
Finds the quotient of numbers
Output Output value
Value Input value
Value Input value
Mod
Finds the remainder after division
Output Output value
Value Input value
Value Input value

Camera


CameraOutput
Single pixel color value
Red Pixel red channel
Green Pixel green channel
Blue Pixel blue channel
RGB All pixel channels
CameraInput
Main texture sampler
Red Texture red channel
Green Texture green channel
Blue Texture blue channel
RGB All texture channels
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
CameraDepth
Main texture depth
Depth Texture depth value
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
DefaultUV
Default texture coordinates
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
StereoUV
Stereo texture coordinates
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
SpecialTex
Special texture sampler
Red Texture red channel
Green Texture green channel
Blue Texture blue channel
RGB All texture channels
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
TempTex
Temp texture sampler
Red Texture red channel
Green Texture green channel
Blue Texture blue channel
RGB All texture channels
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
TexelSize
Texture pixel size
X Value Texel X value
Y Value Texel Y value
Z Value Texel Z value
W Value Texel W value
XYZW Texel size
WorldPosition
Global transform pixel position
X Value Global transform pixel X position
Y Value Global transform pixel Y position
Z Value Global transform pixel Z position
XYZ Global transform pixel position

Constant


HALF_MAX
Constant value: 65504.0
Value 65504.0
EPSILON
Constant value: 1.0e-4
Value 1.0e-4
PI
Constant value: 3.14159265359
Value 3.14159265359
TWO_PI
Constant value: 6.28318530718
Value 6.28318530718
FOUR_PI
Constant value: 12.56637061436
Value 12.56637061436
INV_PI
Constant value: 0.31830988618
Value 0.31830988618
INV_TWO_PI
Constant value: 0.15915494309
Value 0.15915494309
INV_FOUR_PI
Constant value: 0.07957747155
Value 0.07957747155
HALF_PI
Constant value: 1.57079632679
Value 1.57079632679
INV_HALF_PI
Constant value: 0.636619772367
Value 0.636619772367
FLT_EPSILON
Smallest positive number, such that 1.0 + FLT_EPSILON != 1.0: 1.192092896e-07
Value 1.192092896e-07
FLT_MIN
Minimum representable positive floating-point number: 1.175494351e-38
Value 1.175494351e-38
FLT_MAX
Maximum representable floating-point number: 3.402823466e+38
Value 3.402823466e+38

Custom


Custom
Custom function
X Value Output X
Y Value Output Y
Z Value Output Z
W Value Output W
Output Output value
X Value Input X
Y Value Input Y
Z Value Input Z
W Value Input W
Input Input value

Data


WorldSpace
_WorldSpaceCameraPos
X Value World space camera X position
Y Value World space camera Y position
Z Value World space camera Z position
XYZ World space camera position
Projection
_ProjectionParams
X Value 1 (-1 flipped)
Y Value Near
Z Value Far
W Value 1 / far
XYZW Projection parameters
Luminance
unity_ColorSpaceLuminance
X Value Color space luminance X value
Y Value Color space luminance Y value
Z Value Color space luminance Z value
W Value Color space luminance W value
XYZW Color space luminance
DeltaTime
unity_DeltaTime
X Value Delta time
Y Value 1 / delta time
Z Value Smooth delta time
W Value 1 / smooth delta time
XYZW Delta time
Ortho
unity_OrthoParams
X Value Width
Y Value Height
Z Value Unused
W Value Is ortographic?
XYZW Ortographic parameters
ZBuffer
_ZBufferParams
X Value 1 - far / near
Y Value Far / near
Z Value X / far
W Value Y / far
XYZW Z buffer parameters
Screen
_ScreenParams
X Value Width
Y Value Height
Z Value 1 + 1 / width
W Value 1 + 1 / height
XYZW Screen parameters
Time
_Time
X Value Time / 20
Y Value Time
Z Value Time * 2
W Value Time * 3
XYZW Time
SinTime
_SinTime
X Value Sine of Time / 20
Y Value Sine of Time
Z Value Sine of Time * 2
W Value Sine of Time * 3
XYZW Sine of Time
CosTime
_CosTime
X Value Cosine of Time / 20
Y Value Cosine of Time
Z Value Cosine of Time * 2
W Value Cosine of Time * 3
XYZW Cosine of Time

FE


Output
Function output
X Value Output X
Y Value Output Y
Z Value Output Z
W Value Output W
XYZW Output XYZW
Input1
Single index argument
X Value Input X
Input2
Double index argument
X Value Input X
Y Value Input Y
XY Input XY
Input3
Triple index argument
X Value Input X
Y Value Input Y
Z Value Input Z
XYZ Input XYZ
Input4
Quadruple index argument
X Value Input X
Y Value Input Y
Z Value Input Z
W Value Input W
XYZW Input XYZW

HLSL Function


Abs
Returns the absolute value of the specified value
Output Output value
Value Input value
Acos
Returns the arccosine of the specified value
Output Output value
Value Input value
All
Determines if all components of the specified value are non-zero
Output Output value
Value Input value
Any
Determines if any components of the specified value are non-zero
Output Output value
Value Input value
Asin
Returns the arcsine of the specified value
Output Output value
Value Input value
Atan
Returns the arctangent of the specified value
Output Output value
Value Input value
Atan2
Returns the arctangent of two values (x,y)
Output Output value
X Value The x value
Y Value The y value
Ceil
Returns the smallest integer value that is greater than or equal to the specified value
Output Output value
Value Input value
Clamp
Clamps the specified value to the specified minimum and maximum range
Output Output value
Value A value to clamp
Min The specified minimum range
Max The specified maximum range
Cos
Returns the cosine of the specified value
Output Output value
Value Input value
Cosh
Returns the hyperbolic cosine of the specified value
Output Output value
Value Input value
Cross
Returns the cross product of two floating-point, 3D vectors
Output Output value
X Value First floating-point, 3D vector
Y Value Second floating-point, 3D vector
Ddx
Returns the partial derivative of the specified value with respect to the screen-space x-coordinate
Output Output value
Value Input value
Ddy
Returns the partial derivative of the specified value with respect to the screen-space y-coordinate
Output Output value
Value Input value
Degrees
Converts the specified value from radians to degrees
Output Output value
Value Input value
Distance
Returns a distance scalar between two vectors
Output Output value
X Value The first floating-point vector to compare
Y Value The second floating-point vector to compare
Dot
Returns the dot product of two vectors
Output Output value
X Value The first vector
Y Value The second vector
Exp
Returns the base-e exponential, or ex, of the specified value
Output Output value
Value Input value
Exp2
Returns the base 2 exponential, or 2x, of the specified value
Output Output value
Value Input value
Floor
Returns the greatest integer which is less than or equal to x
Output Output value
Value Input value
Fmod
Returns the floating-point remainder of x/y
Output Output value
X Value The floating-point dividend
Y Value The floating-point divisor
Frac
Returns the fractional (or decimal) part of x, which is greater than or equal to 0 and less than 1
Output Output value
Value Input value
Fwidth
Returns the absolute value of the partial derivatives of the specified value
Output Output value
Value Input value
Isfinite
Determines if the specified floating-point value is finite
Output Output value
Value Input value
Isinf
Determines if the specified value is infinite
Output Output value
Value Input value
Isnan
Determines if the specified value is NAN or QNAN
Output Output value
Value Input value
Ldexp
Returns the result of multiplying the specified value by two, raised to the power of the specified exponent
Output Output value
X Value The specified value
Exp The specified exponent
Length
Returns the length of the specified floating-point vector
Output Output value
Value Input value
Lerp
Performs a linear interpolation
Output Output value
X Value The first-floating point value
Y Value The second-floating point value
S Value A value that linearly interpolates between the x parameter and the y parameter
Log
Returns the base-e logarithm of the specified value
Output Output value
Value Input value
Log2
Returns the base-2 logarithm of the specified value
Output Output value
Value Input value
Log10
Returns the base-10 logarithm of the specified value
Output Output value
Value Input value
Max
Selects the greater of x and y
Output Output value
X Value The x value
Y Value The y value
Min
Selects the lesser of x and y
Output Output value
X Value The x value
Y Value The y value
Normalize
Normalizes the specified floating-point vector according to x / length(x)
Output Output value
Value Input value
Pow
Returns the specified value raised to the specified power
Output Output value
X Value The specified value
Y Value The specified power
Radians
Converts the specified value from degrees to radians
Output Output value
Value Input value
Reflect
Returns a reflection vector using an incident ray and a surface normal
Output Output value
I Value A floating-point, incident vector
N Value A floating-point, normal vector
Refract
Returns a refraction vector using an entering ray, a surface normal, and a refraction index
Output Output value
I Value A floating-point, ray direction vector
N Value A floating-point, surface normal vector
n Value A floating-point, refraction index scalar
Round
Rounds the specified value to the nearest integer
Output Output value
Value Input value
Rsqrt
Returns the reciprocal of the square root of the specified value
Output Output value
Value Input value
Saturate
Clamps the specified value within the range of 0 to 1
Output Output value
Value Input value
Sign
Returns the sign of x
Output Output value
Value Input value
Sin
Returns the sine of the specified value
Output Output value
Value Input value
Sinh
Returns the hyperbolic sine of the specified value
Output Output value
Value Input value
Smoothstep
Returns a smooth Hermite interpolation between 0 and 1, if x is in the range [min, max]
Output Output value
Min The minimum range of the x parameter
Max The maximum range of the x parameter
X Value The specified value to be interpolated
Sqrt
Returns the square root of the specified floating-point value, per component
Output Output value
Value Input value
Step
Compares two values, returning 0 or 1 based on which value is greater
Output Output value
X Value The first floating-point value to compare
Y Value The second floating-point value to compare
Tan
Returns the tangent of the specified value
Output Output value
Value Input value
Tanh
Returns the hyperbolic tangent of the specified value
Output Output value
Value Input value
Trunc
Truncates a floating-point value to the integer component
Output Output value
Value Input value

Input


_Int
Int global variable
_Float
Float global variable
_IntSlider
Int global variable
_FloatSlider
Float global variable
_Color
Color global variable
Red Red channel
Green Green channel
Blue Blue channel
Alpha Alpha channel
_Vector2
Vector2 global variable
X X value
Y Y value
_Vector3
Vector3 global variable
X X value
Y Y value
Z Z value
_Vector4
Vector4 global variable
X X value
Y Y value
Z Z value
W W value
_Texture2D
Texture2D global variable
Red Red channel
Green Green channel
Blue Blue channel
Alpha Alpha channel
X axis Texture X coordinates
Y axis Texture Y coordinates
XY Both texture coordinates
_Spline
Spline global variable
X axis Texture X coordinates
_Bool
Bool global variable

Logic


If
Checks if statement is true or false and returns values
Output If output
Statement True or false expression
True True value
False False value
Compare
Compares two values
X > Y X greater than Y
X >= Y X greater or equal to Y
X < Y X smaller than Y
X <= Y X smaller or equal to Y
X == Y X equal to Y
X != Y X not equal to Y
X Value The first value
Y Value The second value
True True value
False False value
And
Handles AND statement
Output X && Y
X Value The first value
Y Value The second value
Or
Handles OR statement
Output X || Y
X Value The first value
Y Value The second value
Not
Handles NOT statement
Output !Value
Value The input value

PPS Function


AnyIsNan
Determines if any components of the specified value are non-zero
Output Output value
Value Input value
DecodeStereo
Decodes normals stored in _CameraDepthNormalsTexture
X Value X output value
Y Value Y output value
Z Value Z output value
XYZ Output value
X Value X input value
Y Value Y input value
Z Value Z input value
W Value W input value
XYZW Input value
FastSign
Returns the sign of x
Output Output value
Value Input value
GradientNoise
Interleaved gradient function from Jimenez 2014
Output Output value
X Value X input value
Y Value Y input value
XY Input value
IsNan
Determines if the specified value is NAN
Output Output value
Value Input value
Linear01Depth
Handles orthographic projection correctly
Output Output value
Value Input value
LinearEyeDepth
Computes linear eye depth space from value
Output Output value
Value Input value
Max3
Selects the greatest of x, y and z
Output Output value
X Value The x input value
Y Value The y input value
Z Value The z input value
Min3
Selects the least of x, y and z
Output Output value
X Value The x input value
Y Value The y input value
Z Value The z input value
PositivePow
PositivePow remove this warning when you know the value is positive and avoid inf/NAN
Output Output value
X Value The specified value
Y Value The specified power
Rcp
Returns 1.0 / value
Output Output value
Value Input value
SafeHDR
Clamps HDR value within a safe range
Red Red output
Green Green output
Blue Blue output
Alpha Alpha output
Color Color output
Red Red input
Green Green input
Blue Blue input
Alpha Alpha input
Color Color input
TriangleVertToUV
Vertex manipulation
X Value X output value
Y Value Y output value
XY Output value
X Value X input value
Y Value Y input value
XY Input value

Predefined Macro


Checker
Checks if destined macro is true or false
Output True or false
NearClipValue
Defined to the value of near clipping plane. Direct3D-like platforms use 0.0 while OpenGL-like platforms use –1.0
Value UNITY_NEAR_CLIP_VALUE
StartsAtTop
Always defined with value of 1 or 0. A value of 1 is on platforms where Texture V coordinate is 0 at the "top" of the Texture. Direct3D-like platforms use value of 1; OpenGL-like platforms use value of 0
Value UNITY_UV_STARTS_AT_TOP
Target
Defined to a numeric value that matches the Shader target compilation model
Value SHADER_TARGET
Version
Contains the numeric value of the Unity version
Value UNITY_VERSION

Value


Value1
Single index value
Value2
Double index value
XY All values
Value3
Triple index value
XYZ All values
Value4
Quadruple index value
XYZW All values

Variable


Variable1
Single index variable
Output Output value
Value Input value
Variable2
Double index variable
X Value First value output
Y Value Second value output
XY Both values output
X Value First value output
Y Value Second value output
XY Both value output
Variable3
Triple index variable
X Value First value output
Y Value Second value output
Z Value Third value output
XYZ All values output
X Value First value output
Y Value Second value output
Z Value Third value output
XYZ All value output
Variable4
Quadruple index variable
X Value First value output
Y Value Second value output
Z Value Third value output
W Value Fourth value output
XYZW All values output
X Value First value output
Y Value Second value output
Z Value Third value output
W Value Fourth value output
XYZW All value output