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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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.