P5.js: Texture UV coordinates?

Created on 16 May 2016  路  6Comments  路  Source: processing/p5.js

Processing has the ability to choose UV coords for vertex Pshapes.
vertex(x, y, u, v)

How can this work with p5js? Is this possible?

GSOC webgl feature request

All 6 comments

Right now vertex() doesn't support u,v's but this is a good feature request, especially for the webgl renderer. I'm doing some work on beginShape and endShape now, so this should fit nicely into that upcoming PR. Use case would look like the example here: https://processing.org/reference/vertex_.html

We'd also need to implement a textureMode() function for mapping u,v's.

This feature would be so great.
Does anyone have any updates on the matter?

big +1 for this

+1 Need this feature in p5.js for a project.

Maybe this can get into WebGL summer of code for 2017 ?

added in #2166!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kappaxbeta picture kappaxbeta  路  3Comments

Vbbab picture Vbbab  路  3Comments

aparrish picture aparrish  路  3Comments

aman-tiwari picture aman-tiwari  路  3Comments

kartikay-bagla picture kartikay-bagla  路  3Comments