Quantcast
Viewing all articles
Browse latest Browse all 40524

How to send an array to a shader frag on oF0.9.0

hey @masakick,

I do believe what you're missing is a reference to the first element of myArray:

shader.setUniform1fv("uniArray", &myArray[0], 3);

Hope that does the trick.


Viewing all articles
Browse latest Browse all 40524

Trending Articles