Re: [osg-users] Change uniform array size

2012-11-16 Thread Peterakos
Hello. I try to create an algorithm which uses a configurable number of samples: uniform vec3 sample_kernel[256]; When i use value higher than 502, i get some errors which probably refer to my GPU (gtx 650). It seems gl_MaxFragmentUniformComponents is 2048. I try to use

Re: [osg-users] Change uniform array size

2012-11-13 Thread Robert Osfield
Hi Peterakos, How you would tackle the problem depends upon what your need are for changing the number of uniforms. In terms of OpenGL objects it's generally best to used fixed size objects so that you don't have to reallocate them. To change the size used by the shader one would simply pass in