Textures for UV1

Hello. Where can I find examples for procedural generated meshes like box, cylinders, et.c.? I’ve noticed that uv0 and uv1 are different, and uv1 contains all faces in one texture

UV1 above and UV0 below

There are some methods in the engine for creating procedural meshes:

https://developer.playcanvas.com/en/api/pc.html#createBox (more below)

And you can check out the source code for those here https://github.com/playcanvas/engine/blob/master/src/scene/procedural.js#L905

Yeah, I’ve seen sources, but I thought it’s popular kind of mapping and I can easily find textures for them. But it seems, I should investigate them by myself.

UV0 is for applying texture maps and can be tiled, UV1 is for lightmaps and has to have all the UV’s for the object layed out flat and not overlapping for light maps, UV0 can have over lapping and often does for tiled textures.

1 Like