# HTML on different faces of cube

**URL:** <https://discourse.threejs.org/t/html-on-different-faces-of-cube/17281>\
**Category:** Questions\
**Tags:** sprites, materials\
**Created:** [July 21, 2020, 12:40pm UTC](https://discourse.threejs.org/t/html-on-different-faces-of-cube/17281 "2020-07-21T12:40:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [July 21, 2020, 2:50pm UTC](https://discourse.threejs.org/t/html-on-different-faces-of-cube/17281/5 "2020-07-21T14:50:06Z")

</div>

Just an option. Take in count the normal of the side which the label belongs to and compute visibility, based on dot product of the normal and the ray from the camera to the position of the label.  
[https://jsfiddle.net/prisoner849/Lgd0sm1q/](https://jsfiddle.net/prisoner849/Lgd0sm1q/)  
Pretty much like there: [Way to hide Points if geometry is seen from backside?](https://discourse.threejs.org/t/way-to-hide-points-if-geometry-is-seen-from-backside/14378/8), but on the side of javascript.

---

_[View the full topic](https://discourse.threejs.org/t/html-on-different-faces-of-cube/17281)._
