Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
3.0.0
Issue ID
1061370
Regression
No
[LWRP] Opaque Texture 4x Box downscale returns null ref, fails to render
When trying to set the opaque texture downsampling setting to 4x box, an error is thrown and rendering fails.
Error:
MissingReferenceException: The object of type 'Material' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Material.SetFloat (System.Int32 nameID, System.Single value) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Shader.cs:524)
UnityEngine.Experimental.Rendering.LightweightPipeline.CopyColorPass.Execute (UnityEngine.Experimental.Rendering.ScriptableRenderContext& context, UnityEngine.Experimental.Rendering.CullResults& cullResults, UnityEngine.Experimental.Rendering.LightweightPipeline.RenderingData& renderingData) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/Passes/CopyColorPass.cs:47)
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightForwardRenderer.Execute (UnityEngine.Experimental.Rendering.ScriptableRenderContext& context, UnityEngine.Experimental.Rendering.CullResults& cullResults, UnityEngine.Experimental.Rendering.LightweightPipeline.RenderingData& renderingData) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/LightweightForwardRenderer.cs:120)
UnityEngine.Experimental.Rendering.LightweightPipeline.LightweightPipeline.Render (UnityEngine.Experimental.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at /Users/andremcgrail/Library/Unity/cache/packages/staging-packages.unity.com/com.unity.render-pipelines.lightweight@3.0.0-preview/LWRP/LightweightPipeline.cs:148)
UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Experimental.Rendering.IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, System.IntPtr loopPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:32)
Steps:
1. Open project(BoatDemo or Template)
2. On the pipeline asset(in graphics settings) set the opaque texture downsampling setting to 4x Box
Expected: The opaque texture is scaled down to 1/4 resolution and a box filtering is performed
Actual: An error is thrown and the pipeline fails to keep rendering resulting in a black screen
Repos in LWRP 3.0.0 works in 2.0.5
Note: Assume it was forgotten in the recent pass refactor
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
This is a duplicate of issue #1061353