Unity Gem Shader and LWRP

Hello everyone, does anyone know how to make old Unity gem shader (https://assetstore.unity.com/packages/vfx/shaders/gem-shader-3) work with LWRP? As i know GEM shader is a multipass shader while LWRP works with only single pass forward rendering, so the back faces of the gems are the first pass and they will be shown up, while the front faces are a second pass which will be skipped. Does anyone know how change the shader code in order to support LWRP or how to make similar shader via shader graph? Thanks in advance

you have to assign 2 materials to the renderer: first one draws the backfaces, second one the front faces.
so you have to split the original shader into two shaders.

Thank you, it really works :), but it is very inconvenient to increase number of materials in unique prefabs in the project, even more if there are a lot of them. Is there a way to change shader code without splitting it into two parts (front faces and back faces rendering) or maybe make similar shader via shader graph?

1 Like

no afaik. lwrp/urp do not support multipass shaders. using multiple materials is the only solution i know.