Skip to main content
1 of 2
Will
  • 7k
  • 4
  • 38
  • 59

interpolating frames in a vertex shader

My models are stored as a set of meshes, each with a vertex list and normal list per frame, and indices for a triangle strip which is shared for all frames. Each frame I interpolate between two adjacent frames and then use glDrawArrays.

How can I move this into a GLSL vertex shader? Can a shader interpolate between two sets of vertices, and how can I store those vertices on the GPU?

Will
  • 7k
  • 4
  • 38
  • 59