Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

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

Hybrid View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2009
    Seattle, WA

    Correct way to send bone data to shaders?

    Nevermind, looks like uniform buffers is it.
    Last edited by JoshKlint; 11-19-2013 at 11:55 AM.

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2013
    I'm using a plain
    Code :
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts