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.
Comments (1)
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
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.