User Manual

Table Of Contents
Setups 1-8
Up to eight separate expressions can be calculated in the Setup tab of the Custom Vertex 3D
node. The Setup expressions are evaluated once per frame, before any other calculations are
performed. The results are then made available to the other expressions in the node as
variables s1, s2, s3, and s4.
Think of them as global setup scripts that can be referenced by the intermediate and channel
scripts for each vertex.
For example, Setup scripts can be used to transform vertex from model to world space.
NOTE: Because these expressions are evaluated once per frame only and not for each
pixel, it makes no sense to use per-pixel variables like X and Y or channel variables like
r1, g1, b1, and so on. Allowable values include constants, variables like n1…n8, time, W
and H, and so on, and functions like sin() or getr1d().
Intermediate Tab
Custom Vertex 3D Node Intermediate tab
Intermediates 1-8
An additional eight expressions can be calculated in the Intermediate tab. The Intermediate
expressions are evaluated once per vertex, after the Setup expressions are evaluated. Results
are available as variables i1, i2, i3, i4, i5, i6, i7, i8, which can be referenced by channel scripts.
Think of them as “per vertex setup” scripts.
For example, you can run the script to produce the new vertex (i.e., new position, normal,
tangent, UVs, etc.) or transform from world space back to model space.
Chapter – 80 3D Nodes 1655