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

Make Overdraw, Lighting and Shadow Splits debug draw modes ignore decals #89253

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Mar 7, 2024

This also makes the Overdraw and Shadow Splits debug draw modes ignore fog. The Lighting debug draw mode still displays fog as that debug draw mode is intended to preview scene lighting, and fog has an impact on how lighting is perceived.

Testing project: test_debug_draw_modes_decals.zip

Preview

Same appearance as #89235, although it's not possible to exclude specific materials from receiving decals with this PR (so ignore the cyan toruses here).

Forward+

Normal Overdraw Lighting Shadow Splits
Screenshot_20240307_004452 Screenshot_20240307_004457 Screenshot_20240307_005526 Screenshot_20240307_004508

Mobile

Normal Overdraw Lighting Shadow Splits
Screenshot_20240307_005648 Screenshot_20240307_005654 Screenshot_20240307_005659 Screenshot_20240307_005706

Compatibility

Normal Overdraw Lighting Shadow Splits1
Screenshot_20240307_005847 Screenshot_20240307_005933 Screenshot_20240307_005939 Not available

Footnotes

  1. Directional Shadow Splits debug draw mode isn't implemented in the Compatibility rendering method.

This also makes the Overdraw and Shadow Splits debug draw modes ignore fog.
The Lighting debug draw mode still displays fog as that debug draw mode
is intended to preview scene lighting, and fog has an impact on how
lighting is perceived.
@Calinou Calinou requested a review from a team as a code owner March 7, 2024 16:45
@Calinou Calinou added bug topic:rendering topic:3d cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Mar 7, 2024
@Calinou Calinou added this to the 4.3 milestone Mar 7, 2024
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@akien-mga akien-mga merged commit f8140a4 into godotengine:master Mar 8, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the debug-draw-modes-ignore-decals-2 branch March 8, 2024 23:14
@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 11, 2024
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.

Decals remain visible in the Overdraw, Lighting and Directional Shadow Splits debug draw modes
3 participants