smoluck wrote:Hi.
I've created a Blended Material through a new shader (based on Snow example). I've succeed on making this one except that i can't find the way to offset the minimum angle where the snow start to appear. Tried to use a contrast node or Offset, but i could find the way. ( searching for some sort of level node like in SubDesigner).
Hello, thank you for getting in touch!
Depending on the type of blending effect you want to achieve, you could possibly try using the Dot product of a Normalized Vector3 and the World Normals in order to blend between two textures according to the angle between those normals and the vector. Feel free to also check out our FourSplatsFirstPassTerrain shader function, included in the main package.
We also provide a few different blending nodes which may assist you in achieving different types of blending, such as the
Layered Blend,
Summed Blend and
Weighted Blend.
smoluck wrote:Anyway the main Problem i got, is that if i want to Blend with that result more textures, for ground, through an RGB Texture to add 3 more different pass, it seems that Unity can't mix more than 2 Normal Map.
Clending the SideStoneWall and Top Stone is ok. but after that, using Lerp to mix the others, they didn't shade correctly ( same thing occur on AO pass)
Have you had the chance to check our FourSplatsFirstPassTerrain shader function? It provides an example on how to blend between 4 different textures and normals, which might serve as a good reference.
If you'd like us to take a quick look at your shader, feel free to send us a simple project sample via
[email protected], thanks!