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

Fog breaks rendering of unshaded materials. #69268

Closed
EzraT opened this issue Nov 27, 2022 · 1 comment
Closed

Fog breaks rendering of unshaded materials. #69268

EzraT opened this issue Nov 27, 2022 · 1 comment

Comments

@EzraT
Copy link

EzraT commented Nov 27, 2022

Godot version

4.0.beta6

System information

Windows 10, Vulkan/OpenGL3, NVIDIA GTX1060

Issue description

Demonstration Videos:

1.mp4
2.mp4
3.mp4

As the title says, unshaded material rendering breaks when any form of fog is enabled, this issue is especially noticeable if the material also uses the add blend mode. Fog does not affect unshaded materials in Godot 3, so unless I'm missing something this should not be happening in Godot 4 either.
Happens in forward_plus, mobile and opengl3 renderers.

Steps to reproduce

  1. Download and open the reproduction project below.
  2. Select the WorldEnvironment node and toggle fog on and off.

Minimal reproduction project

srp_fogbug.zip

@Calinou
Copy link
Member

Calinou commented Nov 28, 2022

Duplicate of #56374.


@EzraT Remember that for GitHub video previews to work, you need to have a blank line before and after the video URL. I edited your post accordingly, but remember to do this in the future 🙂

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