Was wondering if it is possible to share variables across passes. To my knowledge it isn't, but it would make life easier for me.
My case is: I want to skip the second pass when the first pass is applied and not discarded. If it is discarded, it can continue to the second pass. It should not rely on depth testing.
↧