Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rcoreilly
Copy link
Member

that sets the clear color to the color.Scheme.Background so resizing doesn't have bad-looking background. Fixes #1253

…lor to the color.Scheme.Background so resizing doesn't have bad-looking background. Fixes #1253
…round by default, every time, because it has no cost. also base gpu system uses this default because it makes more sense than Black as a default. removed SetClearColor from the system api.
Copy link
Member

@kkoreilly kkoreilly left a comment

Choose a reason for hiding this comment

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

You can definitely see that the new approach is much better; any time you find yourself adding things for each platform separately, you should think about DRY.

@kkoreilly kkoreilly merged commit 05ba3f5 into main Nov 1, 2024
1 check passed
@kkoreilly kkoreilly deleted the clear branch November 1, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set underlying WebGPU background color to same as Scene background, so resize doesn't show black regions

3 participants