- Home /
Sharing variables across shader passes. Is it possible?
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.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613103010im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Shader - Object Depth 0 Answers
How can I get correct lighting on a low poly water shader? 1 Answer
Why color not rendering in my shader? 0 Answers