Unity Products:Amplify Shader Editor/Face: 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

Face Node

The Face node outputs a positive value of 1 if the rendered surface is facing the camera or a negative value of -1 if its facing away from the camera.

NOTE: This node initially was only valid over fragment ports as it uses a face semantic over the fragment function signature to get the value. Now it also work on vertex ports but at the expense of additional instructions as it needs to be manually calculated and its not as precise as the one given by the face semantic.


Nodes used: Float, Texture Sample, Face, Multiply, Append

Output Port Description Type
Out Returns face value. Float


Back to Node List