Jump to content

Custom Shader Materials and Skeletal Deformations


Recommended Posts

Hey all,


I've just discovered the amazing world of fragment and vertex shaders! But I'm finding that when a custom shader is assigned to a mesh deformed by a skeleton, the mesh snaps back to its undeformed state. I'm assuming this is because the "position" and "normal" attributes passed to the custom shader are pre-deformation. is that a correct assessment? is there any way around this? (Like perhaps some sort of "deformed_position" attribute instead of "position")



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...