GLSL_READ_NODE_DATA
constGLSL_READ_NODE_DATA: “\nvec4 readNodeData(sampler2D nodeDataTexture, int nodeDataTextureWidth, int nodeIndex) {\n int t = nodeIndex * 2;\n ivec2 coord = ivec2(t % nodeDataTextureWidth, t / nodeDataTextureWidth);\n return texelFetch(nodeDataTexture, coord, 0);\n}\n”
Defined in: packages/sigma/src/rendering/glsl.ts:155
Reads a node’s geometry texel (x, y, size, shapeId) from the node-data
texture by node index. Shared by every node-data consumer so the two-texel
stride lives in exactly one place.