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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
This is a duplicate of issue #1061353