-
Notifications
You must be signed in to change notification settings - Fork 5
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
WebGL 下 antialias 传 true 报错 #178
Comments
目前 WebGL2 下支持 MSAA 的方式可以参考这个例子:首先关闭 antialias,在创建 pipeline 和 renderTarget 时指定 sampleCount。但 WebGL1 就没办法使用了。 ![]() ![]() 如果一定要开启 antialias,并应用上述方式在 WebGL2 下就会报错: 解决办法有两个:
|
我想了下还是使用第二种方式,WebGL 1/2 都透传 const renderPass = device.createRenderPass({
colorAttachment: [renderTarget],
colorResolveTo: [onscreenTexture],
colorClearColor: [TransparentWhite],
}); |
I thought about it and used the second method. WebGL 1/2 transparently transmits const renderPass = device.createRenderPass({
colorAttachment: [renderTarget],
colorResolveTo: [onscreenTexture],
colorClearColor: [TransparentWhite],
}); |
…) (#181) * fix: pass antialias down through when creating webgl context #178 (#180) * chore: commit changeset (#182) * chore(release): bump version (#183) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
现在会透传
antialias
属性:https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#antialias
https://stackoverflow.com/questions/50255282/webgl2-has-anti-alias-automatically-built-in
但 WebGL2 下报错,WebGL1 正常:
antvis/L7#2416
The text was updated successfully, but these errors were encountered: