Binding VBO's to shader layout

Hello
I am browsing trought the sources for a while now. But i am currently lost. How / where does JME bind the VBO’s? Especially i am interested in the part where the specific VBO’s get’s bound to the specific variables in the shader. (No need to write (layout=1) or something)

Should be somewhere in the JOGLRenderer or? But i can’t find the code for this operation :frowning:

I guess you mean setVertexAttrib in the LwjglRenderer or JoglRenderer, do you?

1 Like

ah right, i have missed these lines:
[java]
stringBuf.setLength(0);
// JOGL 2.0 doesn’t need a null terminated string
stringBuf.append(“in”).append(vb.getBufferType().name());
loc = gl.getGL2ES2().glGetAttribLocation(programId, stringBuf.toString());
[/java]

thx a lot