How to create "distort filter" effect in P5.js?

To distort the images, I found the possible of combing vertex and texture. But turns out it didn't work like it was in processing. How can I achieve this effect? To distort, transform loaded images more freely? The loadPixels function seems will be worked but it's a little complicated for me... And I'm playing around with texture function in p5.js, but I have not ideas about how to adjust the direction or scale of the texture on the 3d objects.

Summarized as 2 questions: 1.How to distort loaded image in P5.js? 2.How to adjust the textures in P5.js?

Thank you very much!

Sign In or Register to comment.