Search Unity

Understanding how multiple shaders are used

Discussion in 'Shaders' started by mrCharli3, Oct 13, 2019.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    976
    Maybe I misunderstand this, but lets say I have a scenario where I want a Toon shader, a shader that makes my model glow, and a shader that creates an outline around my model when its selected.

    1. Is this achieved through using one shader, or several?
    2. If I want to for example toggle the selection outline on/off during runtime, how is that done?
     
  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    350