#Triplanar UVs that fade into different scales depending on distance

1 messages ยท Page 1 of 1 (latest)

tardy olive
#

I might be overthinking this, but I have a triplanar shader that works very well for some rock meshes that I want to use to blend into a landscape. The landscape uses a distance function (the pixel depth part of the screenshot, its the same) to fade between larger smaller and larger UVs depending on distance. My question is, how could I lerp scalar values for a triplanar shader based on distance without warping or harsh pop in? With this method, you can see what it's currently doing. (And you can see how its supposed to look on the landscape) https://gyazo.com/56a38069a32d0e9f2020eaeb46bd7577 https://i.gyazo.com/38355ae8737364f09dd7388dbaef8214.mp4

#

And for what its worth, this works, its just the fading in between part that looks absolutely terrible, and without that fade transition the pop-in would be way too harsh

tardy olive
#

I guess lerping between 2 texture samples was the solution, not really sure why that makes a difference, perhaps someone could explain before I close this

#

and if anyone wants a super simple triplanar function that works literally anywhere, 4.26+

lapis notch
#

Also does that function do it all in the UV's??? That's hella sick

tardy olive
#

Yep that's all in the UVs

#

Really clean way of doing it and it's cheap

#

Although theres a seam on the transition between the 3 vectors, gotta figure out a better way to smooth that blend

lapis notch
#

Have a look at the texture bomb function. I forget what it's called but I made a video on it a while ago

#

It uses dithering between them, since it's also purely UV variation