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 Mobile backend: Fog is only rendered on the background sky, not 3D objects #55870

Closed
Tracked by #55871 ...
Calinou opened this issue Dec 12, 2021 · 1 comment
Closed
Tracked by #55871 ...

Comments

@Calinou
Copy link
Member

Calinou commented Dec 12, 2021

Godot version

4.0.dev (2a9dd65)

System information

Fedora 34, GeForce GTX 1080 (NVIDIA 470.74)

Issue description

Fog (the non-volumetric kind) is not applied to 3D objects when using the Vulkan Mobile backend. It works when using the Vulkan Clustered backend.

Vulkan Clustered backend

2021-12-12_20 30 19

Vulkan Mobile backend

2021-12-12_20 30 41

Steps to reproduce

  • Add a MeshInstance3D node with any PrimitiveMesh resource inside.
  • Add a WorldEnvironment node. Enable Fog (not Volumetric Fog) in the Environment resource. Increase the density to something easily visible such as 0.05.
  • Move the camera away from the object. Notice fog becoming stronger over distance.
  • Switch to Vulkan Mobile backend in the project settings (search for back end).
    • Note: The MRP linked below already uses the Vulkan Mobile backend by default.
  • Restart the editor. Notice fog only affects the background sky, not the object.

Minimal reproduction project

test_vulkan_clustered_vs_mobile_fog.zip

@clayjohn
Copy link
Member

This has been fixed at some point. Testing in RC3 and fog looks the same in Mobile and Forward+

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

2 participants