jolix / Low-Poly-Water

8 stars 0 forks source link

Unity 2018 with SRP #2

Open Votrubec opened 6 years ago

Votrubec commented 6 years ago

Hi "Jolix", is there any news on an update for projects using the SRP (specifically the Light Weight SRP) ? LPW suffers the dreaded pink-material effect. Thanks.

studentutu commented 5 years ago

Hi there @Votrubec @jolix - I have fixed it for LWRP - inside LowPolyWaterAdvanced.shader - under subshader with "RenderType"="Transparent" "IgnoreProjector"="True" "Queue"="AlphaTest+51" "RenderPipeline" = "LightweightPipeline" remove the in all consequent passes the tag "LightMode" - LWRP does not provide "LightMode" = "ForwardBase" or "LightMode" = "Vertex" but uses LighweightForwardBase or something similar

jejacks0n commented 5 years ago

Tested this and while it does work to get it rendering, it doesn't give it the same look as in the non pipeline mode. I couldn't get that figured out, but it's a transparency thing.

jquentin commented 5 years ago

This doesn't work for me. The water surface becomes completely invisible. Can you share the new shader code?

j-funk commented 5 years ago

I just came across this presentation, maybe it will help folks here? https://youtu.be/n8Q4lvhi_Gc?t=911