- Home /
Leaf displacement shader that works for LWRP doesn't work with HDRP and gives odd results.
Hello!
I've recently been playing around with the render pipelines, and I was using the LWRP for a while to test things. No worries as I haven't really started working on anything yet, just a few models and shaders and what not, so changing pipelines wasn't a tough thing to do. I found out that volumetric lighting was a part of the HDRP, and it was a thing I very much needed, and thus I created a new project, and simply imported my model, my textures and most importantly, the shaders I had made for the model. Now, in the LWRP, the shader works as intended. It makes the leaves slowly sway. However, when using the shader in the HDRP, this happens: The purple outline is where the leaf is supposed to be, and it just.. becomes large, and goes far away? I'm very new to shaders and building them, so I have no idea what may be causing this issue. Here is a picture of my shader graph, hopefully to some use.
Does anyone know why this may be happening? Thanks in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220612211152im_/https://answers.unity.com/themes/thub/images/avi.jpg)