I'd like to be able to modify the vertex positions in a vertex shader BEFORE using phongmaterial.
I can think of two solutions:
- apply a shader that modifies the coordinates before the phongShader passes over them
- download a version of phongShader compatible with p5.js and modify it. But I don't find it.