Search Issue Tracker
By Design
Votes
0
Found in
2018.2.6f1
Issue ID
1084419
Regression
No
PostProcessing effect sets the Camera's DepthTextureMode when active, but doesn't clear it when inactive
To reproduce:
1. Download attached project "ProjectWithPostProcessingStack.zip" and open in Unity
2. Open "SampleScene" scene
3. Enter Play mode
4. Observe that there is a GUILayout.Label showing the value of Camera's depthTextureMode property. It should start as None
5. Use the button in the UI to ENABLE the Depth of Field effect
6. Notice the Camera's depthTextureMode property changes to Depth
7. Use the button in the UI to DISABLE the Depth of Field effect
Expected Result: When the PostProcessing Effects are not using the Camer's Depth texture, the Camera's depthTextureMode is set to None
Actual Result: The Camera's depthTextureMode property stays as Depth, it does not change
Notes:
- This issue appears both on Windows and OSX
Reproduced on Unity 2018.1.9f2, 2018.2.10f1, 2018.3.0b3 and 2019.1.0a2
Could not check for regression on Unity 2017.* because project becomes corrupted
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
This is not something we can fix without breaking other things (custom image effects that require DepthTextureMode come to mind).
For a complete description of the problem and potential solutions we tried (and side effects), please see this report on the Github repository:
https://github.com/Unity-Technologies/PostProcessing/issues/33