Particle systems don't render in multi pass mode with URP
Hi,
I'm having an issue where if I switch to multi pass rendering in a project using the Universal Render Pipeline, all my particle systems and line renderers become invisible in the game view. They still show up okay in the scene view however.
The following error shows up in the console:
Assertion failed on expression: 'IsMatrixValid(matrix)' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I've tried both version 2020.1.0f1 and the latest 2020.1.8f1 with clean projects, and the same issue occurs.
Thanks in advance for any help!
I have an identical problem. I am using the standard pipeline, instead of URP. When I have stereo rendering mode set to "Multi-pass", the console blows up with -
Assertion failed on expression: 'IsMatrixValid(matrix)' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
And some of my shaders do not render correctly.
When I have stereo rendering mode set to "Single Instanced", that error goes away, but those same shaders now appear invisible. Any advice would be greatly appreciated. Thanks.
I have exactly the same error using unity 2020.3.2.f1, URP and multipass. No issue using OpenXR (mutli pass and single pass). If I switch to built in renderer, or use singlepass, the error goes away. To reproduce the error, just create a new project with the URP template and import SteamVR.
Has anyone found some workaround?
Hi - Just a quick note to let you know we're working with Unity in investigating this issue,
For singlepass, make sure your shaders are modified to use instancing: https://docs.unity3d.com/Manual/SinglePassInstancing.html
Cheers, Rune