Dynamic Texture in shader

Hi guys,

i´m ussing this patch as a emiter for a particle gpu system, but even with the new texture split node (great one btw), is not a good solution for big textures(256x256).

would it be possible to be done in a shader?
a sort of dynamic texture resample with a threshold.

Thanks in advance.

Test.rar (7.9 kB)

no sorry, you can’t reorder pixels in a shader when the order depends on values of other pixels.

but i think you can come up with another shader function which has a similar output as your patch…

Thanks Tonfilm,
have you any idea or a starting point?