Home Unity

Custom Vertex Shader Forward Add pass dont works

Hi, I'm working with some shaders, and i need to integrate some 3d models with 2d sprites. I made a custom shader for a 3d model and that one is working fine, and another similar shader for 2d planes, but when I'm trying to add a transparent pass, it never works at the second or further lights, as it excludes others pixel behind the plane, like in this image(https://gyazo.com/00a1c50688996342203eb1968107dfcb).

Here, with a single directional light(https://gyazo.com/2ebb7af0945cee6a7356fb6029f516aa).

This only happens with two or more lights. When use a single directional light the transparency works well.

Anyone knows how to fix that?
Sign In or Register to comment.