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

Display a checkerboard pattern on the fallback 3D material #71774

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jan 21, 2023

Marked as draft, as this currently affects the Display Lighting debug draw mode. This debug draw mode should be modified to use a different, untextured fallback material.

This has two benefits over a plain untextured surface:

  • It looks better, and gives a better first impression of the engine's visuals.
    • As a bonus, the checkerboard pattern helps make color banding and shadow dithering patterns less noticeable (closer to how it'd be in most finished projects).
  • It has better usability, as the checkerboard gives you a sense of scale.

This shader is based on @CptPotato's procedural checker shader.

This closes godotengine/godot-proposals#6138.

Testing project: test_fallback_material.zip

Preview

Daytime

Current fallback material With checkerboard material
Screenshot_20230121_014105 webp Screenshot_20230121_014057 webp
Screenshot_20230121_014158 webp Screenshot_20230121_014152 webp
Screenshot_20230121_014223 webp Screenshot_20230121_014215 webp

Nighttime

Current fallback material With checkerboard material
Screenshot_20230121_013636 webp Screenshot_20230121_013603 webp
Screenshot_20230121_013813 webp Screenshot_20230121_013804 webp
Screenshot_20230121_013926 webp Screenshot_20230121_013918 webp

This has two benefits over a plain untextured surface:

- It looks better, and gives a better first impression of the engine's visuals.
  - As a bonus, the checkerboard pattern helps make color banding and
    shadow dithering patterns less noticeable (closer to how it'd be
    in most finished projects).
- It has better usability, as the checkerboard gives you a sense of scale.
@CptPotato
Copy link
Contributor

Cool to see the checkerboard shader getting some use 👍

@Calinou
Copy link
Member Author

Calinou commented Feb 3, 2023

Closing, as I discussed a different (and less invasive) approach with reduz: godotengine/godot-proposals#6138 (comment)

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.

Display a checkerboard pattern on the fallback 3D material
2 participants