I was wondering how 3d engines like Unity or OpenGL added textures to objects. 


Example:

[![enter image description here][1]][1]

How would Unity add this texture to the side the arrow is pointing to?


 [1]: https://i.sstatic.net/pVdcy.png