2

I create 1000 size vec3 array, but it shows nothing on glut window when I resize the array to 128. it will show I think it has some limit on my Graphic card.

what can I do to avoid this limit?

uniform vec3 cir[128]; // can show something

uniform vec3 cir[1000]; // shows nothing

I need pass at least 500 cir to shader.

4

1 回答 1

4

Uniforms 已通过GL_ARB_uniform_buffer_object扩展以支持大型数组。如果您负担不起使用此扩展的费用,则可以考虑改用一维纹理。

于 2012-09-03T03:05:01.547 回答