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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
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