Open Helco opened 4 years ago
With these two changes were you able to get yourself unblocked? Thank you for piecing together this in depth overview of the changes that are needed.
Yes with these changes I could use the SpectatorView in a LWRP project. I did not test LWRP to its full extent though.
Quick update as #327 and its beautiful! occlusion support broke my LWRP fix, these are the additional steps to take:
Blur.shader
into two and Graphics.Blit
commands per blur pass, as GrabPass isn't supported in LWRPOcclusionMask.shader
use _CameraDepthTexture
instead of _LastCameraDepthTexture
I did not find an issue regarding Leightweight Render Pipeline, for the camera scenario at least it did not work for me. I debugged this issue down to two problems:
TextureManager
uses theOnPreRender
/OnPostRender
events by Unity which are not supported in LWRP. It seems to work when adding these lines in theStart
method:renderTexture
is ignored in theHoloAlpha
shader. I fixed it by modifying the blending to: