I noticed that visually it seems there were a lot less particles than if I opened the file in touch077, and after digging a bit, it looks like this line in the rendering shader
is not referencing correctly all the instances. If I remove *(uInstanceIDOffset+1) I get the same result and I see no mention of uInstanceIDOffset in the wiki anymore, but it looks like I’m not getting all my 44100 instances.
Not sure if it’s a bug or if something needs changing.
Or maybe in my old post Achim has a point and I was doing something wrong though it looked nicer. Going to dig a bit more.
Still curious why uInstanceIDOffset is not needed anymore though.
// For instancing functions, if you don’t provide an index,
// it will use (gl_InstanceID) or (gl_InstanceID + uTDInstanceIDOffset), depending on the situation
in the wiki, but replacing uInstanceIDOffset with uTDInstanceIDOffset gives an error with GLSL version 1.2 in Touch088.
Going to quickly try switching to glsl 4 for this one.