# How to get section/submesh position in shader.

**URL:** <https://forums.unrealengine.com/t/how-to-get-section-submesh-position-in-shader/482356>\
**Category:** Rendering\
**Tags:** position, unreal-engine, Shaders, question\
**Created:** [April 23, 2021, 11:26am UTC](https://forums.unrealengine.com/t/how-to-get-section-submesh-position-in-shader/482356 "2021-04-23T11:26:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GokoShiki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GokoShiki](https://forums.unrealengine.com/u/GokoShiki)\
**Post date:** [April 26, 2021, 9:42am UTC](https://forums.unrealengine.com/t/how-to-get-section-submesh-position-in-shader/482356/2 "2021-04-26T09:42:13Z")

</div>

Got reply in the forum:

> [@How to get mesh's section/sub-mesh position in material?](https://forums.unrealengine.com/t/how-to-get-meshs-section-sub-mesh-position-in-material/226461):
>
> Hi, We have a humanoid skeleton mesh, and we’re making a material for the “eye” section(or called sub-mesh?), in which we need to get the eye’s world position to achieve a specific effect. But the ActorPositionWS returns the skeleton mesh actor’s position, and the ObjectPositionWS returns the whole skeleton’s primitives’ bounds center instead of the eye itself (including body, head, etc). I know there’s a walkaround by using blueprint to get the eye’s bone position and set the param on materi…

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-get-section-submesh-position-in-shader/482356)._
