Hi Im using a shader that looks like photoshop's overlay blending mode. When I updated my project to unity5, the shader show this error: "Support for SetTexture combiner +- has been removed" This is the shader: Code (CSharp): Shader "Custom/Photoshop Overlay" { Properties { _MainTex ("Base (RGB), Alpha (A)", 2D) = "" {} } SubShader { LOD 100 Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } Pass { Cull Off Lighting Off ZWrite Off Fog { Mode Off } Offset -1, -1 ColorMask RGB // AlphaTest Greater .01 Blend SrcAlpha OneMinusSrcAlpha ColorMaterial AmbientAndDiffuse SetTexture [_MainTex] { Combine Texture +- Primary, Texture * Primary } SetTexture [_MainTex] { Combine Texture +- previous, Texture * Primary } } } } How do I fix it?
You'll need to write it as a Surface shader or fragment shader. The fixed pipeline is becoming a thing of the past.