processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.2k stars 3.23k forks source link

Ability to pass a W variable to WebGL texture mapping #6784

Open minystreem56 opened 5 months ago

minystreem56 commented 5 months ago

Increasing access

Make it so people are able to make there own 3D engines with textures.

Most appropriate sub-area of p5.js?

Feature enhancement details

I am making my own 3D engine, but I am using WebGL for texture mapping, but becuse I pass 2d cords to WebGL it cannot do the proper prespective projection making the texture look werid, here is my project so you can see this. For more information check out this webpage that describes this issue in more detail.

welcome[bot] commented 5 months ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

davepagurek commented 5 months ago

I'd love to get a general solution to custom attributes (https://github.com/processing/p5.js/issues/5120) as a way to enable this!

minystreem56 commented 5 months ago

Sorry for disabling textures on my project, been working on it and forgot. if anybody wants to see it again I can fix it up.