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

Question about how to change background color #9

Open
AuthorityWang opened this issue May 12, 2024 · 0 comments
Open

Question about how to change background color #9

AuthorityWang opened this issue May 12, 2024 · 0 comments

Comments

@AuthorityWang
Copy link

I wonder how to change the background color from black to white. I try to change the metalKitView.clearColor, but it does not work. When I change the renderer.clearColor to white, all the window becomes white and no item is shown on the screen.
截屏2024-05-13 00 08 55
What's more, For the SplatCloud.swift, if we change
descriptor.colorAttachments[0].sourceRGBBlendFactor = .oneMinusDestinationAlpha
descriptor.colorAttachments[0].sourceAlphaBlendFactor = .oneMinusDestinationAlpha
descriptor.colorAttachments[0].destinationRGBBlendFactor = .one
descriptor.colorAttachments[0].destinationAlphaBlendFactor = .one
to
descriptor.colorAttachments[0].sourceRGBBlendFactor = .one
descriptor.colorAttachments[0].destinationRGBBlendFactor = .oneMinusSourceAlpha
descriptor.colorAttachments[0].sourceAlphaBlendFactor = .one
descriptor.colorAttachments[0].destinationAlphaBlendFactor = .oneMinusSourceAlpha
The background color can become white but the gesture to change the camera will be the opposite, and the view to look at the object will become wrong.
截屏2024-05-13 00 11 43
I wonder if there is a correct way to change the background color.

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

No branches or pull requests

1 participant