duck

duck

Mar 4th, 2010
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. Vector4 splat = new Vector4(1, 0, 0, 0);
  2. splat = Vector4.Lerp(splat, new Vector4(0, 1, 0, 0), denseness);
  3. splat = Vector4.Lerp(splat, new Vector4(0, 0, 1, 0), steepness);
  4. splat = Vector4.Lerp(splat, new Vector4(0, 0, 0, 1), wetness);
  5. splat.Normalize();
Add Comment
Please, Sign In to add comment