How to pass large amounts of data to a fragment shader?

Hi!

I think, THREE.DataTexture will help in this case.
As an example: Spline + DataTexture
I put data of a spline in DataTexture and pass it in a uniform to shaders.

Also, have a look at the related stuff:

  1. GitHub - zz85/threejs-path-flow: 🐬🐟 ↶Mesh Deformation / Bending / Following on a Curve
  2. modifier - curve and its main module
2 Likes