How to put numbers to the sides of a cube and later get which number landed on top

Modified: https://codepen.io/prisoner849/pen/qBwRdQm

Used MeshLambertMaterial instead of MeshBasicMaterial.

One cube’s side has four vertices, so you need to provide four pairs of UV data per side.

The dice of mine:

2 Likes