Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
14.0.0
Issue ID
1403820
Regression
No
ShaderGraph-defined Shader doesn't include needed macros to properly render Mesh with Graphics.RenderMeshIndirect() API
How to reproduce:
1. Open the user's attached "Graphics RenderMeshIndirect" project
2. Enter the Play Mode in the "01 - Bug" Scene
3. Observe the blue Mesh
Expected result: Blue Mesh position is static
Actual result: Blue Mesh position is transformed by the RenderParams.worldBounds.center
Reproducible with: 12.1.5 (2021.2.14f1), 13.1.6 (2022.1.0b10), 14.0.0 (2022.2.0a7)
Couldn't test with: 7.7.1 (2019.4.36f1), 10.8.1 (2020.3.30f1) (RenderParams doesn't exist)
Notes:
- Issue isn't reproducible with Graphics.RenderMesh() API
- In the "02 - Custom shader (Working)" Scene, the position of the Mesh with the user-defined Shader (from https://docs.unity3d.com/2021.2/Documentation/ScriptReference/Graphics.RenderMeshIndirect.html example) is rendered properly
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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Resolution Note:
RenderMeshIndirect is, unfortunately, not a supported feature. You can find it on our roadmap here: https://portal.productboard.com/unity/1-unity-platform-rendering-visual-effects/c/61-support-for-drawindirect-drawprocedural.