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
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
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