Hi @Hatefreaks,
Oh man, I hate build errors. They’re such a pain to try and diagnose.
My first thought- what platform are you running this on? You may be getting issues with the custom depth depending on the platform. Or maybe even a view size is an issue if you’re in VR.
I would suggest setting up a system to debug this material in-build to figure out where the issue is coming from, otherwise you might just be guessing and checking for a while. I would suggest using lerps and the DebugScalarValues node to make sure you’re able to read information from the different aspects of your material.
Something like this, though probably with a few more debugs:
Then, either make a few versions of the material with different debugs turned on and swap between them dynamically, or create a dynamic material and change the parameters in-game. This should help you figure out where your bug is coming from.