Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Baking bone matrices for skinning

Discussion in 'Animation' started by VictorKs, Dec 2, 2018.

  1. VictorKs

    VictorKs

    Joined:
    Jun 2, 2013
    Posts:
    242
    So I created a vertex shader to do my skinning on the GPU but my bone matrices are completelly wrong.
    How can I calculate the bone matrices so I can send them to my GPU?
     
  2. polyflow3d

    polyflow3d

    Joined:
    Oct 6, 2014
    Posts:
    297
    transform.localToWorldMatrix