instanceIndex.div(100).mul(100) !== instanceIndex

pos.assign(rotate(pos, vec3(0,0,instanceIndex.div(100).mul(100))))
pos.assign(rotate(pos, vec3(0,0,instanceIndex)))

Why do these two approaches result in two completely different outcomes?

Is your instanceIndex float or integer?

2 Likes