[GLGraphics] Sending an array of variables to a GLSL shader?
              in 
             Contributed Library Questions 
              •  
              1 year ago    
            
 
           
             I've been using GLGraphics to work with -for now mainly fragment- shaders. All computation is handled within the shader which is working really well. To tweak settings in real-time, I'm sending some (uniform) variables from Processing to the shader. Again, working fine.
            
            
Now I'd like to send an array of variables* to the shader. Is this possible in GLGraphics? And if so, how?
            
             
            
            
* meaning: more variables than 4 floats into a vec4, rather something like vec2[20] or vec3[8]
 
           
 
            
           Now I'd like to send an array of variables* to the shader. Is this possible in GLGraphics? And if so, how?
 
            * meaning: more variables than 4 floats into a vec4, rather something like vec2[20] or vec3[8]
 
              
              1  
            
 
            
 
 
           
 
            