Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No anisotropic filtering with GLES2 backend #45641

Closed
furrykef opened this issue Feb 1, 2021 · 3 comments
Closed

No anisotropic filtering with GLES2 backend #45641

furrykef opened this issue Feb 1, 2021 · 3 comments

Comments

@furrykef
Copy link

furrykef commented Feb 1, 2021

Godot version:

3.2.4.rc1

OS/device including version:

Linux Mint 20.1, Radeon HD 7850, amdgpu driver

Issue description:

I get no anisotropic filtering at all in GLES2, at least from what I can tell. It works fine in the same project with GLES3.

Also, there is no option to change the anisotropic filtering level in the Project Settings when GLES2 is active. This setting can still be adjusted by switching to GLES3, changing the setting, and switching back, but it has no visible effect in GLES2.

I'm told anisotropic filtering used to work with the GLES2 backend, which is why I'm reporting this as a bug rather than a feature request.

Steps to reproduce:
Just run the attached project. Notice how much blurrier the ground is as it approaches the horizon in GLES2 mode, but not in GLES3 mode.

Minimal reproduction project:

anisotropy.zip

@Calinou
Copy link
Member

Calinou commented Feb 1, 2021

For the record, anisotropic filtering (including configuring the anisotropic filtering level) worked back in Godot 2.x. Therefore, it should be possible to have this working in 3.2.x's GLES2 renderer too.

@Calinou Calinou added this to the 3.2 milestone Feb 1, 2021
@clayjohn
Copy link
Member

clayjohn commented Feb 1, 2021

I would resist calling this a bug. Anisotropic filtering is an optional extension that hardware manufacturers can provide. AFAIK it should be supported on all hardware, but even GLES3 has to enable it with an extension check. Also, while it is available on pretty much all desktop devices, support on android (and I assume WebGL) is still not good.

It looks like is was never added to the GLES2 renderer. It is unclear whether this is by design or just because karrofel didn't have enough time.

At any rate, it can likely be added using a similar system as in GLES3 without too much work.

This would be a great task for someone who wants to learn a bit more about working with graphics APIs

@akien-mga
Copy link
Member

Fixed by #45654.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants