Part of the Khronos Group
OpenGL.org

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
    Location
    California
    Posts
    188

    Correct way to send bone data to shaders?

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

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2013
    Posts
    7
    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
  •