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

Vulkan: Environment Ao Channel Affect property has no effect and should be removed #54611

Open
Calinou opened this issue Nov 4, 2021 · 2 comments · May be fixed by #82274
Open

Vulkan: Environment Ao Channel Affect property has no effect and should be removed #54611

Calinou opened this issue Nov 4, 2021 · 2 comments · May be fixed by #82274

Comments

@Calinou
Copy link
Member

Calinou commented Nov 4, 2021

Related to #43957.

Godot version

4.0.dev (536757b)

System information

Fedora 34, GeForce GTX 1080 (NVIDIA 470.74)

Issue description

The SSAO Ao Affect property no longer has any effect, but it's still present in WorldEnvironment. Quoting from #45023:

-SSAO ao affect is gone because this confused users, min(ao,ssao) now used, should work in most cases.

I tried to remove this property in https://github.com/Calinou/godot/tree/remove-ao-channel-affect but didn't succeed yet.

By the way, the Ssao > Light Affect property in WorldEnvironment also seems to have no effect. Only the BaseMaterial3D ambient occlusion Light Affect property seems to have an effect on AO appearance, on both the AO map and SSAO. This is likely a bug though, as I'd expect the material property to only influence the AO map, not SSAO.

Steps to reproduce

  • Create a MeshInstance with a BoxMesh and StandardMaterial3D.
  • Assign an ambient occlusion map to the material.
  • Enable SSAO in WorldEnvironment.
  • Adjust Ao Channel Affect in WorldEnvironment, and notice how it has no effect on the scene.

Minimal reproduction project

test_ssao_ao_affect.zip

@WickedInsignia
Copy link

I've noticed that AO doesn't work as expected on Standard Material. If the Light Affect slider is at 0, the AO map doesn't affect the appearance of the material even in the absence of direct light. Light Affect at 1 does what it should though.
Let me know if we need a unique bug report for this, but the issue was close enough to this one for me to not risk the duplicate.

@Calinou
Copy link
Member Author

Calinou commented Sep 16, 2023

I've noticed that AO doesn't work as expected on Standard Material. If the Light Affect slider is at 0, the AO map doesn't affect the appearance of the material even in the absence of direct light. Light Affect at 1 does what it should though. Let me know if we need a unique bug report for this, but the issue was close enough to this one for me to not risk the duplicate.

I recall seeing this issue in 3.x, but not in 4.x. Do you have SSAO or SSIL enabled?

Either way, this should be tracked in a separate issue, so please open an issue with a minimal reproduction project attached.

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

Successfully merging a pull request may close this issue.

4 participants