Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Is it possible to pass a list of arrays to a shader Frag

$
0
0

What i meant was, i have an array of points i need to use for calculation. The number of this points is unknown from the start and might increase or decrease over time.

I'm not sure what's the best way to do it.
I can't set #define MAX_ITEMS 5 cause I won't know the length of that array. It will depend on what is being tracked at runtime.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>