Search Issue Tracker
By Design
Votes
0
Found in
5.5.4f1
Issue ID
1081027
Regression
No
CommandBuffer.GetTemporaryRT with custom size is incorrect when rendering path is set to Forward
Steps to reproduce:
1. Open attached project
2. Open "_BlurryRefraction" scene
3. Make sure Main Camera rendering path is set to "Forward"
4. Go into play mode
-Wall (_RefractiveGlass object) is not transparent
Expected result: "_RefractiveGlass" object should be transparent
Note: Enabling "Allow HDR" fixes the issue
Reproduced on: 2017.4.11f1, 2018.2.8f1, 2018.3.0b2, 2019.1.0a1
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
- “[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
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
When HDR is not on, the CameraTarget points to a null texture. So the TemporaryRT cannot get the size of the "screen". When HDR is on, an intermediate texture is created in the pipeline where CameraTarget has a texture.
So to workaround, either use cam.pixelWidth, cam.pixelHeight instead of -2,-2
or
have this in the script:
void OnRenderImage(RenderTexture src, RenderTexture dst)
{
Graphics.Blit(src,dst);
}