Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

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

  1. AlejandroVillalba_ThundThund

    AlejandroVillalba_ThundThund

    Joined:
    Feb 7, 2017
    Posts:
    300
    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:
    38
    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.