I'm trying to make a Surface Shader that uses multiple passes, with two different blending functions for each one, but I get the following error I don't understand:
Parse error: syntax error, unexpected TOK_PASS, expecting TOK_SETTEXTURE or '}' at line 28
SubShader
{
ZWrite Off
Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" "PreviewType"="Plane" }
Pass
{
//transparency
Blend SrcAlpha One
CGPROGRAM
#pragma surface surf Lambert
#pragma target 3.0
struct Input
{
//
};
sampler2D //;
void surf (Input IN, inout SurfaceOutput o)
{
//
}
}
ENDCG
}
Pass
{
//alphabend
Blend SrcAlpha OneMinusSrcAlpha
CGPROGRAM
#pragma surface surf Lambert
#pragma target 3.0
sampler2D//;
fixed4 //;
struct Input
{
//;
};
void surf(Input IN, inout SurfaceOutput o)
{
//
}
ENDCG
}
}