Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is it possible to use non-ShaderGraph shaders (code) with 2D Renderer?

Discussion in '2D Experimental Preview' started by AlexVillalba, Dec 26, 2020.

  1. AlexVillalba

    AlexVillalba

    Joined:
    Feb 7, 2017
    Posts:
    346
    Hi everybody, just as the title says, is there any way to make manually coded shaders work with the 2D Renderer? Is it planned to provide shader templates for Unlit or Lit sprites for example?

    Thanks.
     
  2. Ragueel

    Ragueel

    Joined:
    Jun 2, 2018
    Posts:
    39
    Yes, you can write code by yourself, but it is a bit complicated. Have a look at the tutorials about how to write shader code for the URP, then check how 2D Lit/Unlit code was written by unity. Then just do modifications to the original code.