Unity Products:Amplify Shader Editor/Global Array

From Amplify Creations Wiki
Revision as of 16:02, 23 August 2021 by ampwiki>Amplify RnD Rick
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Global Array Node

The Global Array node creates and accesses a global array. Array's type, size and name can be configured via its Type, Array Length and Name respective options.

Node Parameter Description Default Value
Mode Defines if the current creates the array or reference an already created array over other node.
  • Object: Create and access a global array with the specified setup
  • Reference: Access a global array created on another node
Object
Reference Global Array node which creates the global array we want to use. <None>
Name Name of the global array to be created/accessed. MyGlobalArray
Auto-Register If toggled on, creates the property and/or global variable even if not connected to an Output node Off
Is Jagged If toggled on, creates a multi-dimensional array/array of arrays. Off
Index Position on the array to be accessed. Only visible if the respective input port is not connected. 0
ArrayLength Length of the array to be created. Only visible if the respective input port is not connected. 1
Index X Position on the first index to be accessed, only shown on jagged array. Only visible if the respective input port is not connected. 0
Index Y Position on the second index to be accessed, only shown on jagged array. Only visible if the respective input port is not connected. 0
Array Length X Length, dimension of the first array to be created, only shown on jagged array. Only visible if the respective input port is not connected. 1
Array Length Y Length, dimension of the second array (array of the array) to be created, only shown on jagged array. Only visible if the respective input port is not connected. 1
Type Type of data the array will contain.
  • Float: Float data type
  • Color: Float4 data type
  • Vector4: Float4 data type
  • Matrix4x4: Float4x4 data type
Float
Range Check if toggled on, adds additional clamp instruction to prevent out of bounds access to the array. False


Input Port Description Type
Index Position on the array to be accessed. Int
Array Length Length of the array to be created. Int
Index X Position on the first index to be accessed, only shown on jagged array. Int
Index Y Position on the second index to be accessed, only shown on jagged array. Int
Array Length X Length, dimension of the first array to be created, only shown on jagged array. Int
Array Length Y Length, dimension of the second array (array of the array) to be created, only shown on jagged array. Int

Back to Node List