Search Issue Tracker
By Design
Votes
1
Found in [Package]
13.0.0
Issue ID
1366165
Regression
No
[URP] Render Feature/Pass is not sending correct values to compute shader when using Ray Marching
Reproduction steps:
1. Open the attached project ("Unity-Raymarching.zip")
2. Observe the Game and Scene windows
Expected result: Game window renders Camera view, scene renders without black overview
Actual result: Game windows render black, Scene window has a black overlay
Reproducible with: URP 12.1.0 (2021.2.0B16), 13.0.0 (2022.1.0a12)
Could not test with: 2019.4.32f1, 2020.3.21f1, 2021.1.25f1
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
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
- Crash on ModelImporter::ImportSkinnedMesh when disabling "Strip Bones" on a specific FBX model
- WebGL Development builds ignore the "Compression Format" setting when using "Gzip" compression
- [tvOS] Project crashes on startup on Apple TV simulator (both X86_64 and ARM64 architectures)
- Context menus open on a different monitor when there are three monitors used
Resolution Note:
The compute buffers bound were null since they were disposed too early in the frame. URP doesn't officially support compute yet, so the current OnCameraCleanup() is not a good place to dispose of compute buffers.
To test the fix just remove these 2 calls from OnCameraCleanup() in RayMarchRenderFeature.cs:
_objectsBuffer.Dispose();
_lightsBuffer.Dispose();