Search Unity

Texture blend Shader can not be mask

Discussion in 'Shaders' started by skxatbj, Sep 12, 2019.

  1. skxatbj

    skxatbj

    Joined:
    Jun 24, 2018
    Posts:
    4
    Below is a simple texture blend shader:
    Code (CSharp):
    1. Shader "Hidden/NewImageEffectShader 1"
    2. {
    3.     Properties
    4.     {
    5.         _MainTex ("Texture", 2D) = "defaulttexture" {}
    6.     }
    7.     SubShader
    8.     {
    9.         Blend SrcAlpha One
    10.  
    11.         Pass
    12.         {
    13.             SetTexture[_MainTex]
    14.         }
    15.     }
    16. }
    But it can not be mask in scroller view with mask component, can help me ?
     

    Attached Files: