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

WebGPU 设置深度后透明度问题如何解决? #469

Open
ouzhou opened this issue Jan 26, 2025 · 0 comments
Open

WebGPU 设置深度后透明度问题如何解决? #469

ouzhou opened this issue Jan 26, 2025 · 0 comments

Comments

@ouzhou
Copy link

ouzhou commented Jan 26, 2025

我渲染了两个圆,想通过增加 z-index 让第一个圆处于最前面。但是,启用深度测试后,第一个圆的背景变得透明。

https://codepen.io/ouzhou-the-bashful/pen/YPKRbXz

我只是想把第一个圆的图层调高,就像在CSS中调整图层一样。

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