spinoff request from here: Coding question: reducing draw calls of multiple instanced objects
Unlike most of the PG use cases, mine are (what I’d like to call) pushing the limits. I have 30 different types of flora for a static environment. Ideally, I’d hate to even spend 2 draw calls for eye candy. But common opinion is that its proper to create 1 sps per model, which would mean 30 sps (max) for my use case with 30 slightly different position functions. So I was thinking that it would save lines of code if the shapeId was exposed in the positionfunction to
function(particle, i, s, shapeId). Users can then pull the right data into the positionfunction based on which shape the particle is modelled after instead of having to create many position functions.
Apologies if shapeId is not the correct var to expose, I’d browsed the API and not yet eyeballed the source for it.