# Get Vector from Material

**URL:** <https://forums.unrealengine.com/t/get-vector-from-material/463627>\
**Category:** Rendering\
**Tags:** parameters, get, unreal-engine, vector, question\
**Created:** [April 11, 2020, 7:34am UTC](https://forums.unrealengine.com/t/get-vector-from-material/463627 "2020-04-11T07:34:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dinfael](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dinfael](https://forums.unrealengine.com/u/Dinfael)\
**Post date:** [April 11, 2020, 7:34am UTC](https://forums.unrealengine.com/t/get-vector-from-material/463627/1 "2020-04-11T07:34:54Z")

</div>

Hello,  
I simply want to get a Vector3 value out of a Material. I don’t need to edit it, just get its value.  
Unfortunately, the only exposeable parameters I can find are inputs, not outputs. I can’t figure out for the the life of me how to get that… it SHOULD be quite a simple operation

 ![299493-issue1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/d/07d9a61a618cb5fbd8d5f71f26b81aa9c20464ff.jpeg)

---

<div class="post-metadata">

**Author:** ![nameLive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nameLive](https://forums.unrealengine.com/u/nameLive)\
**Post date:** [April 11, 2020, 10:58am UTC](https://forums.unrealengine.com/t/get-vector-from-material/463627/2 "2020-04-11T10:58:15Z")

</div>

Maybe you can make the Texture Sample into a Paramter so you can get information from it in BP.  
You do so by right clicking the TS, name it something, then from blueprint if you have a ref to the dynamic material instance can get paramaters

![299488-maketextureparam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/6/c26c4454d115814d2ba26d019fecbfd971487d38.jpeg)

 ![299487-gettextureparam.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/9/119e872a3825c7eac6cf33f67c19469b57421081.jpeg)

---

<div class="post-metadata">

**Author:** ![Vecherka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vecherka](https://forums.unrealengine.com/u/Vecherka)\
**Post date:** [April 11, 2020, 12:01pm UTC](https://forums.unrealengine.com/t/get-vector-from-material/463627/3 "2020-04-11T12:01:33Z")

</div>

Hello Dinfael,

the setup you’ve shown us simply doesn’t allow for it to return a value. Unless you write those values out to a buffer, you won’t be able to get the color directly from a fragment inside a shader (which gets executed on the gpu, (idealized to) per pixel (fragment) simultaneously) to your game thread (cpu).  
However you can access the texture by itself, or the g-buffers (I assume your working with the deferred renderer).

Hope that helps. Just let me know if you have any questions, or need further help.

Regards,

Vecherka.
