0

I am trying to implement a planet generating shader. I use simplex noise to generate a 3D noise on my sphere giving values between 0 and 1.

I have 4 textures that I want to apply based on ranges from 0 to 1 to determine when the given texture should fade in or out.

What is the common approach to blend textures in this case? Lerping only lets me work with 2 textures so i have no idea the best way to blend for more than that.

wduk
  • 177
  • 6
  • The standard approach is to make a convex linear combination: $u(x,y) = \sum_{k=1}^{N}w_k(x,y) f_k(x,y)$ such that $w_k(x,y)\geq 0$ and $\sum_{k=1}^{N}w_k(x,y) = 1$. – lightxbulb Jul 23 '22 at 13:56

0 Answers0