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 Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
This is a duplicate of issue #1061353