Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a1
2019.1.4f1
2019.2.0a1
2019.3.0a1
Issue ID
1161719
Regression
No
[LWRP]Scriptable Rendering Pass is not working when using it with Graphics.DrawMesh
Steps to reproduce:
1. Open users attached project "kkhighlightplus.zip"
2. Navigate to Project -> Assets -> HighlightPlus -> Demo and open "Scene"
3. Enter Play mode
4. Hower the mouse on the Blue Sphere in the Scene
5. Notice that the highlight meshes created by Graphics.DrawMesh(..) do not render or are not visible.
Expected results: Graphics.DrawMesh is Rendering Highlight
Actual results: Graphics.DrawMesh in not Rendering Highlight or it is not visible
Reproducible with: 2019.1.3f1(5.7.2), 2019.1.9f1( 5.16.1), 2019.2.0b7( 6.7.1)
Notes: 2018.4.3f1 throws package errors and makes the scene pink. 2019.3.0a7 displays black screen in Play Mode.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note:
Resolving by-design as SRP relies on CommandBuffers so Graphics.DrawMesh APIs might not work as in built-in render pipeline.
User can create custom CommandBuffer and insert these CommandBuffer at different Camera callback functions that is supported by Lightweight Render Pipeline.
Here is an example: https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/TestProjects/LWGraphicsTest/Assets/Scenes/052_LWCallbacks/CameraCallbackTests.cs