What’s the best way to create an array of vec4 colors for passing to a shader?
Currently I have a few constant TOPs connected to TOPtoCHOP and then a merge CHOP but it doesn’t seem to work as expected. In the shader I can only access the first color
If you already have the data in a TOP, then just use the TOP directly and look up into it’s pixels using texelFetch(). No need to bring it down to CHOPs.
If you have the data in CHOPs to begin with though, use the ‘texture buffer’ mode and lookup the samples from the samplerBuffer variable you declare in your shader.
Hi, thanks for the reply. I can concat my colors into a small texture. Not sure why I thought it had to be CHOPs