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

Mobile: Uncomment code required for fog rendering on clear color #79776

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

LRFLEW
Copy link
Contributor

@LRFLEW LRFLEW commented Jul 22, 2023

This should fix #74187. I noticed these lines of code were commented out while looking into an unrelated issue. The equivalent lines of code are not commented out in the Forward+ (forward clustered) renderer, so I assume it's an error here,

I'm not entirely sure why the code here was commented out originally, only that it was commented out when the Mobile renderer was first added with #47059. Perhaps there was some issue this was working around? I wasn't able to identify any issues with uncommenting it now, so I assume there's no problem with this PR. I would like to know why it was commented out originally if anybody still remembers, so I can be certain there are no issues with uncommenting it now.

@LRFLEW LRFLEW requested a review from a team as a code owner July 22, 2023 06:51
@Calinou Calinou added bug topic:rendering topic:3d cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 23, 2023
@Calinou Calinou added this to the 4.2 milestone Jul 23, 2023
@clayjohn
Copy link
Member

Oh, and by the way, there shouldn't be any issues. There are other checks to ensure that the volumetric fog is actually enabled before updating shader params etc.

@LRFLEW
Copy link
Contributor Author

LRFLEW commented Jul 24, 2023

I implemented the suggestions as an amended commit to avoid cluttering the git history. That does make sense as a change, so thanks for the suggestion. I'm still not entirely caught up on what's not available between the different renderers, so it wasn't something I would have caught on my own.

@LRFLEW LRFLEW requested a review from clayjohn July 27, 2023 00:23
@YuriSizov YuriSizov merged commit 13307e7 into godotengine:master Aug 1, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.3.

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan mobile: fog does not affect plain color skies even at fog_affect_sky = 1.
4 participants