WorldAlignedTexture with alpha?

Hello! I am trying to improve my landscape material and avoid stretching by using WorldAlignedTexture instead of landscapecoords to apply my cliff textures.

However, my texture contains an alpha mask that I use as a heightmask and displacement map, and it seems like the WorldAlignedTexture node only takes on the RGB channels, which means that my displacement and and heightmap won’t match my texture.

Do you have any suggestions on how I can make use of alpha as well?

World Aligned Texture has an export float 4 bool input, did you try that?

4 Likes

yes. Modify the function. Open it. Copy it. Make a new one.
change all inputs to float4 or whatever it is to have all the channels.

It should function almost immediately without major issues since the basic idea also works on individual channels.

Thank you! I should have noticed that input!

Arkiras’ answer works perfectly.