What is the right way to send an array of bone matrices to the vertex shader?

Nevermind, looks like uniform buffers is it.

I’m using a plain

uniform mat4 u_bones[ MAX_BONES_PER_MESH ];

for the bones and the vertex-specific stuff comes through the vertex-stream.
Is a uniform-buffer faster than a uniform matrix-array and updating this every frame?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.