- Home /
Why is my picture distorted?
I using multiple sprite and texture mask shader Shader:
 Shader "TextureMask"
 {
    Properties
    {
       _MainTex ("Base (RGB)", 2D) = "white" {}
       _Mask ("Culling Mask", 2D) = "white" {}
       _Cutoff ("Alpha cutoff", Range (0,1)) = 0.5
    }
    SubShader
    {
       Tags {"Queue"="Transparent"}
       Lighting Off
       ZWrite Off
       Blend SrcAlpha OneMinusSrcAlpha
       AlphaTest GEqual [_Cutoff]
       Pass
       {
          SetTexture [_Mask] {combine texture}
          SetTexture [_MainTex] {combine texture, previous}
       }
    }
 }

The first picture before using the shader, the second after
 
                 
                screenshot-2.png 
                (119.6 kB) 
               
 
                
                 
                screenshot-1.png 
                (116.8 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                