Skip to content

Learn how blend between 2 (or more) textures using Vertex Colors in a Shader

License

Notifications You must be signed in to change notification settings

llamacademy/vertex-color-blended-shader

Repository files navigation

Waves in ShaderGraph (URP)

In this tutorial repository and accompanying video you will learn how blend between 2 (or more) textures using Vertex Colors. This gives you a similar experience to using the Terrain Tools to paint on a Terrain, but on a mesh!

To achieve the painting, we're using PolyBrush, a free Unity Package. To subdivide objects to ensure high enough polygon count for the Vertex Colors, we're using ProBuilder, another free Unity Package.

Youtube Tutorial

Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to the LlamAcademy Patreon Page or join as a YouTube Member to show your support.

Phenomenal Supporter Tier

  • Andrew Bowen
  • YOUR NAME HERE!

Tremendous Supporter Tier

  • Bruno Bozic
  • YOUR NAME HERE!

Awesome Supporter Tier

  • AudemKay
  • Ivan
  • Reulan
  • Iffy Obelus
  • SolarInt
  • Perry
  • YOUR NAME HERE!

Supporters

  • Trey Briggs
  • Matt Sponholz
  • Dr Bash
  • Tarik
  • Sean
  • Elijah Singer
  • Lurking Ninja
  • Josh Meyer
  • Ewald Schulte
  • Andrew Allbright
  • AudemKay
  • Claudiu BARSAN-PIPU
  • Ben
  • Xuul
  • Christiaan van Steenwijk
  • Joseph Janosko
  • Chimera Dev
  • Wendy Whitner
  • YOUR NAME HERE!

Other Projects

Interested in other Topics in Unity?

Requirements

  • This was implemented with Universal Render Pipeline, but it works on Built-in and HDRP as well.
  • I'm using Unity 2022.3 LTS, but this functionality should be working on pretty much any modern version of Unity that support:
    • PolyBrush (included in Unity Package Manager dependencies)
    • ProBuilder (included in Unity Package Manager dependencies)
    • ShaderGraph (included in Unity Package Manager dependencies)