godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.12k stars 21.19k forks source link

Root viewport texture filtering only works in GLES2 #38806

Open sszigeti opened 4 years ago

sszigeti commented 4 years ago

Godot version: 3.2.stable

OS/device including version: Windows 10

Issue description: Enabling texture filtering on the root viewport is the only way for a consistent visual result with proper font hinting that works equally well with fullscreen/windowed mode. For this I'm using an AutoLoad (by the way I truly believe this feature should be available without scripting), but it's only working with GLES2. Switching to GLES3 the root viewport texture filtering is ignored. The flag is set, and no error or warning is shown, but the rendered texture is ugly and pixelated.

Steps to reproduce: Clone and open the included demo project. Will start in GLES2. Toggle the "Viewport filtering" CheckButton to see that when it's enabled the viewport texture is filtered. Now switch rendering/quality/driver/driver_name to GLES3 and observe that the filtering is no longer working.

Minimal reproduction project: https://github.com/sszigeti/GodotViewportFilteringDemo

Further details on Reddit

clayjohn commented 4 years ago

Related PRs: https://github.com/godotengine/godot/pull/35517 https://github.com/godotengine/godot/pull/30039

Look like this has already been implemented twice over and just hasnt been merged :D

cc @Calinou