Hi everyone
I’d like to change the texture of the mesh (like a laptop/phone screen)
However, the uv of the mesh is edited (Downloaded or related to draw call issue)
In this case, how can I initialize uv with JS code?
When I upload the image to the texture, the UV setting should be initialized and the image should be applied to the mesh.
(The mesh shape that I want to change the texture can be any shape, not a plane, but first, I’d like to get an idea of a plane shape)
This is what I want below.
Here’s the playground link.
edited UV initializing test
Thanks in advance!
- The modeling asset in playground
“CyberPunk Laptop Concept Design” (CyberPunk Laptop Concept Design - Download Free 3D model by Berk Gedik (@berkgedik) [fddc4e6] - Sketchfab) by Berk Gedik is licensed under Creative Commons Attribution (Creative Commons — Attribution 4.0 International — CC BY 4.0).