LWRP Multi-Pass Shader
Posted: Wed Jan 30, 2019 4:43 am
Hi, I recently purchased Amplify Shader editor due to the Lightweight Render Pipeline Support.
I've had some luck creating a few things, but I've been stuck for a long time on one major issue.
I'm trying to create an Xray shader, something similar to the following:
Creating the effect where the object is visible when behind geometry is quite easy, you just switch the ZTest Mode to Greater.
However where I'm running into an issue is getting the shader to do both regular drawing of the object, as well as the unlit color when the Ztest is Great then (behind geometry)
I've tried to use Additional Use Passes.
And I've also tried adding extra passes to the template, and even extra subshaders. All to no avail. I'm wondering if perhaps this is not supported yet in LWRP, or if I may be missing something. Thanks.
I've had some luck creating a few things, but I've been stuck for a long time on one major issue.
I'm trying to create an Xray shader, something similar to the following:
Creating the effect where the object is visible when behind geometry is quite easy, you just switch the ZTest Mode to Greater.
However where I'm running into an issue is getting the shader to do both regular drawing of the object, as well as the unlit color when the Ztest is Great then (behind geometry)
I've tried to use Additional Use Passes.
And I've also tried adding extra passes to the template, and even extra subshaders. All to no avail. I'm wondering if perhaps this is not supported yet in LWRP, or if I may be missing something. Thanks.