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

Sending vec2 data to fragment shader

$
0
0

@Hideki_Eguchi wrote:

////////////
fragment shader
////////////
uniform vec2 data[64];

////////////
oF Code
////////////
ofVec2f sendData[64];
for (int i = 0; i < 64; i++) {
sendData[i] = ofVec2f(0.0, 0.0);
}
shader.setUniform2fv("data", sendData, 64);

An error occurred!!
Could you tell me how to send vec2 array?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles