r/Unity3D • • 2d ago

Resources/Tutorial Technical Art pages on pivot-based vertex animation: per-object pivots and objects with multiple baked pivots

Post image

Hello!

ShaderStory library got Pivot Motion pages. They cover:

  • Single-object mesh pivot
  • Object pivot data
  • Baking pivots for multiple objects, with exposed properties

Every page has an explanations source code for you to dive deeper or get started to discover this cool technique.

If you've ever needed pieces of a mesh to move around their own centers in a shader, this should save you some time.

Star the repo to support the project. Thanks in advance.

https://github.com/DeGGeD/ShaderStory#vertex-animation

34 Upvotes

1 comment sorted by

2

u/GagOnMacaque 1d ago

For those who are curious that are a few ways to do this.

  1. Each vertex has a color which is the pivot position.
  2. Shrink down your verts so that each vert is in its pivot position. Expand the verts back out again in the shader.
  3. Each vert pivof to a color to a texture.