Search Unity

Question Bind Channels equivalent in URP?

Discussion in 'Universal Render Pipeline' started by ParadoxSolutions, Sep 23, 2020.

  1. ParadoxSolutions

    ParadoxSolutions

    Joined:
    Jul 27, 2015
    Posts:
    325
    Bind channels is deprecated in URP how can I update this shader used for drawing lines?

    Code (CSharp):
    1. Shader "Custom/Lines"
    2. {
    3.     SubShader
    4.     {
    5.         Pass
    6.         {
    7.             Blend SrcAlpha OneMinusSrcAlpha
    8.             ZWrite Off
    9.             ZTest Always
    10.             Cull Off
    11.             Fog { Mode Off }
    12.  
    13.             BindChannels
    14.             {
    15.               Bind "vertex", vertex
    16.               Bind "color", color
    17.             }
    18.         }
    19.     }
    20. }