Unity Products:Amplify Shader Editor/Normalize: Difference between revisions

From Amplify Creations Wiki
Jump to navigation Jump to search
ampwiki>Amplify RnD Rick
No edit summary
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:06, 2 December 2023

Back to Node List

Normalize Node

The Normalize node ( shortcut: N key ) calculates a normalized vector of the one specified at its Input which has the same direction but a norm/length of 1. In other words it outputs Input/Length( Input ).


Nodes used: World Space Light Dir, View Dir, Add, Normalize

Node Parameter Description Default Value
Input Vector to be normalized. Only visible if the respective input port is not connected. 0
Safe Normalize Division by 0 is prevented over the normalize operation at the expense of additional instructions on shader. False


Input Port Description Type
Input Vector to be normalized. Float4 [1]

  1. ^ Port automatically adapts to all connection types except Matrices and Sampler types.

Back to Node List