# Image Texture Camera Coordinates NME

**URL:** <https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520>\
**Category:** Questions\
**Created:** [December 23, 2024, 5:19am UTC](https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520 "2024-12-23T05:19:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaughmj1](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vaughmj1](https://forum.babylonjs.com/u/vaughmj1)\
**Post date:** [December 23, 2024, 5:19am UTC](https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520/1 "2024-12-23T05:19:27Z")

</div>

Is it possible to have something similar to these coordinates based on the toon shader tutorial on your youtube, but have it so the image is locked in place but always faces the camera? So on a 3D sphere, the word test would be centered and would only show one word and remain centered.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/9/b92d83243cd50b8a38cf08837f0099a4d6a6f4c1.png)

> **[Babylon.js Node Material Editor](https://nodematerial-editor.babylonjs.com/#AS89AZ)**
>
> Babylon.js Node material editor - shader-based materials editor for Babylon.js

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 23, 2024, 9:52am UTC](https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520/2 "2024-12-23T09:52:17Z")

</div>

You can add an offset to the uv coordinates before sampling the texture:

> **[Babylon.js Node Material Editor](https://nodematerial-editor.babylonjs.com/#AS89AZ%231)**
>
> Babylon.js Node material editor - shader-based materials editor for Babylon.js

---

<div class="post-metadata">

**Author:** ![vaughmj1](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vaughmj1](https://forum.babylonjs.com/u/vaughmj1)\
**Post date:** [December 23, 2024, 7:58pm UTC](https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520/3 "2024-12-23T19:58:48Z")

</div>

Thank you for the reply, do you know how to maintain the correct offset when rotating and translating around the 3D sphere?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 23, 2024, 8:57pm UTC](https://forum.babylonjs.com/t/image-texture-camera-coordinates-nme/55520/4 "2024-12-23T20:57:04Z")

</div>

I don’t know how to do it in the NME.

I was able to do something that might be what you’re expecting (?) by using a texture projected by a spotlight, and making sure that the projection direction and angle always keep the texture at the same position on the sphere :

> **[Babylon.js Playground](https://playground.babylonjs.com/#TO260R)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes
