GLSLMaterial has undefined TDInstanceID()

It seems that the GLSLMaterial does not define TDInstanceID(). If I recall correctly it used to have it defined, so it seems like a bug. See attached and example.

Build 2023.11760 on Windows 11
GLSLMaterial_NoInstanceID.tox (1.2 KB)

Hi @Darien.Brito,

TDInstanceID() is defined in the vertex shader instead of the pixel shader.

you would have to output it as a flat int from the vertex shader.

cheers
Markus

Hi @snaut,

Of course, that makes sense!
Silly me, in haste I didn’t even notice I was requesting it in the pixel shader :sweat_smile:
Sorry for the false alarm :wink:

Thank you!

Best,
Darien

1 Like