Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How can I pass 2D array or 1D array as parameters to shader

$
0
0

@Kevin97 wrote:

Hi there,

How can I pass 2D array or 1D array as parameters to shader?
I want to know if I could use UBO or texture to do this.
And, how can declare these stuff in fragment shader?

I have search a lot of resources but nothing, hope someone can help me.

Thanks a lot.

ex:

float *p = new float[arraysize];

or

int p1[][];
int p2[];

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles