Documentation / Node reference / code nodes

code/PointIndex

The point index of one corner of the primitive being processed, inside a compute/Builder that iterates primitives.

Geometry

A primitive-iterating compute/Builder runs one invocation per primitive, so `EntityIndex` on code/Globals is a primitive index, not a point index. This node resolves a corner of that primitive (`vertexIndex` 0, 1 or 2) to the point it refers to, which a code/Attribute with `overrideEntityIndex` can then read. Three of these plus three attribute reads is how a per-face expression sees its triangle. Triangles only, matching the rest of the compute dataflow.

Parameters

Name Type What it does
vertexIndex SInt32 Which corner of the primitive: 0, 1 or 2.

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.