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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
This is a duplicate of issue #1061353