i want each vertex to have the ability to read a whole buffer.
I know i can pass a buffer, but a vertex can only read 1 spot currently (attribute vec4 allows to read only 4 spots from the buffer).
- idea 1: Lets try 16 components for each vertex.
vertex.setupData(usage, 16, format, buf);
java.lang.IllegalArgumentException: components must be between 1 and 4
- idea 2: dont know how is it implemented.
is there a way to allow each vertex to have access to the whole buffer ? something like global data buffer.
a) how do i declare it in the shader.
b) how do i pass it.