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
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
- "Sample Gradient" node can be connected to the "Sub Mesh Mask" input and makes the VFX Graph uncompilable
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.