Documentation / Node reference / code nodes

code/Globals

The values the parent builder hands to every entity it runs over.

Globals

The outputs change with the builder this node sits under, because each builder has different values to offer. Under a geometry builder (geo/ObjectBuilder, geo/PointBuilder, geo/VolumeBuilder) you get the entity being processed: its position, its index, its uvw. Under a material or texture builder you get the shading values: P, N, UV, the camera position, the viewport resolution, and the clock. The clock outputs are `time` and `deltaTime`. `time` is seconds since play start reduced modulo 2048 seconds, the same value the `t()` expression returns, so an animation driven from it and a parameter driven from `t()` agree; an animation that does not repeat within that period jumps once every 2048 seconds. For a counter that only ever goes up, use the `frameIndex` scene uniform or the `f()` expression, which count render frames.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.