1

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.
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.