I try to use another pass inside of surface shader to combine both surface together, guess it doesn’t work that way?
Can I only do multiple pass with vertex and frag shaders?
I try to use another pass inside of surface shader to combine both surface together, guess it doesn’t work that way?
Can I only do multiple pass with vertex and frag shaders?
Bit late, but I just had the same problem. Turns out, Surface Shader code generates multiple passes. This means you can’t put them in passes, but it doesn’t mean you can’t have other passes. You can do this:
CGPROGRAM
// code here
ENDCG
Pass {
// additional pass
}