# Trying to Use world space textures with existing material

**URL:** <https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 2, 2024, 5:12pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771 "2024-06-02T17:12:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FREAKINGREXIS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FREAKINGREXIS](https://forums.unrealengine.com/u/FREAKINGREXIS)\
**Post date:** [June 2, 2024, 5:12pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/1 "2024-06-02T17:12:03Z")

</div>

I am working on trying to use the worldspacetexture node with the existing functionality of the prototype material.

I got this far but cant figure out how to have the quivalent of the UV input for the texture object

I am new to all things materials so I am sorry If i explained it wrong or its a simple solution.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/3/1730d49775cb1f78d0577fd05ca9a69307aabdab.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 2, 2024, 6:12pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/2 "2024-06-02T18:12:00Z")

</div>

You basically use the ‘texture size’ pin on the node to match the UV size of the normal nodes. But be aware, that something that is size 1 with the normal nodes, is something more like 250 with the world aligned node.

---

<div class="post-metadata">

**Author:** ![FREAKINGREXIS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FREAKINGREXIS](https://forums.unrealengine.com/u/FREAKINGREXIS)\
**Post date:** [June 2, 2024, 6:15pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/3 "2024-06-02T18:15:55Z")

</div>

Thank you! so when I put the r from the texture sample, it makes the material do this?

Is this relate to the size issue you were talkin about?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/9/3190c537bf2b3383f231d24b6723e6ea43c14a5b.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 2, 2024, 6:23pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/4 "2024-06-02T18:23:20Z")

</div>

Er, nope 🙂

You have to make a variable, and plug it in.

But what are you trying to do? I see that it already is a world aligned material ( from the box comment ).

---

<div class="post-metadata">

**Author:** ![FREAKINGREXIS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FREAKINGREXIS](https://forums.unrealengine.com/u/FREAKINGREXIS)\
**Post date:** [June 2, 2024, 6:25pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/5 "2024-06-02T18:25:20Z")

</div>

So the goal is to have it work with other objects with the grid affect.

I have a tutorial map that uses prototype textures and I want it to tile with different objects so i dont have to align things for every object

It works now without the sub grid so it might be something I just settle on

---

<div class="post-metadata">

**Author:** ![FREAKINGREXIS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FREAKINGREXIS](https://forums.unrealengine.com/u/FREAKINGREXIS)\
**Post date:** [June 2, 2024, 6:27pm UTC](https://forums.unrealengine.com/t/trying-to-use-world-space-textures-with-existing-material/1885771/6 "2024-06-02T18:27:36Z")

</div>

this seems to be the issue now tho

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/1/6b16f70606a18dc3bbf636a9a883f02808d26674.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/e/feef5bae1d09f089739754ceb3486694c6dbd89e.png)
