Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

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

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

  1. ThundThund

    ThundThund

    Joined:
    Feb 7, 2017
    Posts:
    275
    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.
     
unityunity