Search Issue Tracker
By Design
Votes
0
Found in
5.6.1f1
Issue ID
914448
Regression
Yes
RenderTexture::FilterMode changes from Point to Bilinear when scene is played
MainCamera's targetTexture is set to a RenderTexture, which has FilterMode.Point. But when the scene is played, filterMode changes to FilterMode.Bilinear.
To reproduce:
1. Open the attached project
2. Open "test" scene
3. Play the scene
Desired outcome: The cube in the scene has "pixel art" look, with sharp edges
Actual result: The cube in the scene is blurry
Reproduced with 5.6.0p4, 5.6.1f1, 5.6.1p1, 2017.2.0a1
Not reproduced with 5.5.2p2, 5.5.3p4, 5.6.0p3, 2017.1.0a4, 2017.1.0b7
Regression introduced in 5.6.0p4
---
It is caused by an improvement that was made to allow MSAA if not rendering direct to the back buffer. In this case what is happening is that the project has MSAA settings, and the camera is wanting to use MSAA. As the temporary texture does not have MSAA unity creates an intermediate target. When the MSAA resolve happens the samples are resolved in a way that leads to the blurriness you are seeing.
If you disable 'Allow MSAA' and 'Allow HDR' then the camera will just use the render target you have plugged in.
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
AdrienneO
Dec 22, 2017 00:38
In my case, I set FilterMode.Bilinear, but when play is turned on in the editor, filterMode is changed to Point. I can interactively set it back to Bilinear and can see the change take effect. I would like to not have to change it interactively, just have it keep the setting. It appears to be able to use the settings. I am also rendering to texture and have MSAA enabled.