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

Transparent windows on macOS are opaque #6330

Closed
rparrett opened this issue Oct 21, 2022 · 1 comment
Closed

Transparent windows on macOS are opaque #6330

rparrett opened this issue Oct 21, 2022 · 1 comment
Labels
A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-MacOS Specific to the MacOS (Apple) desktop operating system

Comments

@rparrett
Copy link
Contributor

rparrett commented Oct 21, 2022

Bevy version

main

What you did

run the transparent_window example

What went wrong

window is not transparent

Additional information

Related to gfx-rs/wgpu#687

This can be "worked around" by setting alpha_mode to CompositeAlphaMode::PostMultiplied instead of CompositeAlphaMode::Auto (in bevy 0.9-dev+). I'm not sure what the other implications of doing that are.

See also a similar issue on linux: #5779

@rparrett rparrett added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in O-MacOS Specific to the MacOS (Apple) desktop operating system labels Oct 21, 2022
@aprchen
Copy link

aprchen commented Nov 24, 2022

Thanks, this worked for me

This can be "worked around" by setting alpha_mode to CompositeAlphaMode::PostMultiplied instead of CompositeAlphaMode::Auto (in bevy 0.9-dev+). I'm not sure what the other implications of doing that are.

@bors bors bot closed this as completed in 57bf771 Mar 4, 2023
Shfty pushed a commit to shfty-rust/bevy that referenced this issue Mar 19, 2023
# Objective

- Example `transparent_window` doesn't display a transparent window on macOS
- Fixes bevyengine#6330

## Solution

- Set the `composite_alpha_mode` of the window to the correct value
- Update docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-MacOS Specific to the MacOS (Apple) desktop operating system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants