# Triplanar textures stretched on some slopes of my icosphere 

**URL:** <https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665>\
**Category:** World Creation\
**Tags:** unreal-engine, Landscape, procedural, question\
**Created:** [September 21, 2025, 2:09pm UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665 "2025-09-21T14:09:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sir-Lagg-A-Lot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir-Lagg-A-Lot](https://forums.unrealengine.com/u/Sir-Lagg-A-Lot)\
**Post date:** [September 21, 2025, 2:09pm UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/1 "2025-09-21T14:09:04Z")

</div>

Greetings everyone, I’m new to game dev and I’m running into a weird issue with triplanar texturing on my large procedural generated icosphere planet.

Here’s the HLSL I’m using:

```auto
GeoNormal = normalize(WorldPosition - PlanetCenter);

UVX = WorldPosition.yz / Scale; 
UVY = WorldPosition.xz / Scale; 
UVZ = WorldPosition.xy / Scale; 

float3 w = pow(abs(GeoNormal), BlendSharpness);
w = max(w, 0.001);
Weights = w / (w.x + w.y + w.z + 1e-6);

```

The issue is that textures are stretched on certain slopes depending on their orientation relative to the planet. Some slopes always appear stretched in one direction, even though the planet is fully spherical.

I’m trying to figure out how to make the texture scale uniform across all slopes while keeping smooth triplanar blending.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 22, 2025, 2:04am UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/2 "2025-09-22T02:04:37Z")

</div>

are you a bot? there’s a node for triplanar blending you don’t need custom hlsl.

---

<div class="post-metadata">

**Author:** ![Sir-Lagg-A-Lot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir-Lagg-A-Lot](https://forums.unrealengine.com/u/Sir-Lagg-A-Lot)\
**Post date:** [September 22, 2025, 7:38am UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/3 "2025-09-22T07:38:16Z")

</div>

Thank you for your answer. I am not a bot (even though this is what a bot would probably also say ^^).

While i could use the WorldAlignedTexture node, it faces the same issues, as i do not have a plain flat where my terrain is located on but a lot of chunks arranged into an icosphere around a center point. So every Chunk has its own mesh pointing away from this center point

---

<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:** [September 22, 2025, 7:40am UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/4 "2025-09-22T07:40:38Z")

</div>

I don’t know if you’ve seen this guys method? ( procedural spherical UV )

https://www.youtube.com/embed/O5CrWYUM4-A?feature=oembed&wmode=opaque

I would just paste the material here, but I’m not at a machine rn…

---

<div class="post-metadata">

**Author:** ![Sir-Lagg-A-Lot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir-Lagg-A-Lot](https://forums.unrealengine.com/u/Sir-Lagg-A-Lot)\
**Post date:** [September 22, 2025, 12:03pm UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/5 "2025-09-22T12:03:06Z")

</div>

Thank you for your answer. I did not know about this method yet. I tried it and got it to work planet wide, but it suffers from stretching on all slopes differently when i would like to have the same scale for the textures for all of them. it also stretches a lot more the further it gets to the poles.

---

<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:** [September 22, 2025, 12:26pm UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/6 "2025-09-22T12:26:30Z")

</div>

If you ever find an answer, let me know. I don’t think there is one.. 😉

---

<div class="post-metadata">

**Author:** ![Sir-Lagg-A-Lot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir-Lagg-A-Lot](https://forums.unrealengine.com/u/Sir-Lagg-A-Lot)\
**Post date:** [September 22, 2025, 6:23pm UTC](https://forums.unrealengine.com/t/triplanar-textures-stretched-on-some-slopes-of-my-icosphere/2658665/7 "2025-09-22T18:23:19Z")

</div>

I have found a workaround that works very well for me:

```auto
GeoNormal = normalize(WorldPosition - PlanetCenter);

SurfaceNormal = normalize(cross(
    ddx(WorldPosition), 
    ddy(WorldPosition)
));

UVX = WorldPosition.yz / Scale; 
UVY = WorldPosition.xz / Scale; 
UVZ = WorldPosition.xy / Scale; 

float3 w = pow(abs(SurfaceNormal), BlendSharpness);
w = max(w, 0.001);
Weights = w / (w.x + w.y + w.z + 1e-6);

return 0;

```
