Shader doesn't write the fragment color in the second pass

In the Forum posting guidelines we have a short description of a good way to format your code using ``` tags before and after. I’ve tested on your post just above here and it worked as expected.

[code] tags are BBCode and not the best approach to take, even though it works for now. It is not native to these forums.

Hope this is helpful. Check out the Forum Posting Guidelines for more help.