Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted How to blend two materials (not textures)

Discussion in 'Shader Graph' started by Jelmer123, Aug 13, 2019.

  1. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    105
    Hi

    In 3DS MAX, I often mix 2 completely different materials using a Blend material that has 2 materials as sub materials. They are blended using a mask (2D texture).
    Is this possible in Shader Graph? Or can't you parent/child full materials?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    8,849
    Not possible with Shader Graph. Not possible with real time shaders in general unless you write a custom shader that does it for you. The closest you can have is render your object twice with two separate materials, and have one be set to transparent with a mask to fade it out. Otherwise make a new Shader Graph with both “shaders” in it and lerp between them.
     
    Jelmer123 likes this.
  3. Flow-Fire-Games

    Flow-Fire-Games

    Joined:
    Jun 11, 2015
    Posts:
    232
    layered shaders are a forward rendering feature if Im not mistaken and game engines usually don't do that
    Even renderers like Octane only support it with cheap hacks like mix shaders blending 2 together
     
    Jelmer123 likes this.
  4. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    105
    Ok thanks for the insights! I will then use one material and make a blend for each mapping (albedo, normal, specular etc etc)
     
unityunity