# How does UV Mapping happen after setting map to a texture?

**URL:** https://discourse.threejs.org/t/how-does-uv-mapping-happen-after-setting-map-to-a-texture/68098
**Category:** Questions
**Tags:** material, texture
**Created:** [July 13, 2024, 8:23am UTC](https://discourse.threejs.org/t/how-does-uv-mapping-happen-after-setting-map-to-a-texture/68098 "2024-07-13T08:23:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gezell](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gezell/32/49348_2.png) [@Gezell](https://discourse.threejs.org/u/Gezell)
#### Post date: [July 13, 2024, 8:23am UTC](https://discourse.threejs.org/t/how-does-uv-mapping-happen-after-setting-map-to-a-texture/68098/1 "2024-07-13T08:23:35Z")

</div>

How does simply setting the texture on this cube’s material.map parameter, automatically make the perfect uv mapping?

[https://threejs.org/examples/#webgl\_geometry\_cube](https://threejs.org/examples/#webgl_geometry_cube)

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [July 13, 2024, 8:50am UTC](https://discourse.threejs.org/t/how-does-uv-mapping-happen-after-setting-map-to-a-texture/68098/2 "2024-07-13T08:50:29Z")

</div>

It doesn’t make a perfect mapping - only if you want the texture wrapped in that specific way, because the UV values for built-in geometries are pre-calculated and always the same 👀
