-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
WebGLMultipleRenderTargets: Example fix iOS with MSAA #24141
Conversation
There is another issue only on iOS, some texture types will break in certain cases. I don't have an explanation of the why, I think it's just a bug. Also, there was an issue with Safari which was fixed in the latest version (15.5) where it was required to clear the canvas before rendering the scene. I only added comments since this issue has been patched, should we add it anyway?
// safari prior 15.5 needs the renderer to be cleared() | ||
// if ( parameters.samples > 0 ) { | ||
|
||
// renderer.clear(); | ||
|
||
// } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also affected scenes that used antialias
on the renderer, with gl.clear()
being a workaround that accepted any combination of bits -- even simply zero.
Since being patched, I think we can direct users to keep their browsers up-to-date rather than employ these workarounds. iOS is a bit too unstable for comfort.
I would prefer to keep code like this out of the examples. They don't have to demonstrate how to achieve a library feature with older/buggy browsers. |
Alright! Just fix the iOS issue by removing the unnecessary float texture format 👍 |
* WebGLMultipleRenderTargets: Example fix iOS with MSAA There is another issue only on iOS, some texture types will break in certain cases. I don't have an explanation of the why, I think it's just a bug. Also, there was an issue with Safari which was fixed in the latest version (15.5) where it was required to clear the canvas before rendering the scene. I only added comments since this issue has been patched, should we add it anyway? * Update webgl2_multiple_rendertargets.html
* WebGLMultipleRenderTargets: Example fix iOS with MSAA There is another issue only on iOS, some texture types will break in certain cases. I don't have an explanation of the why, I think it's just a bug. Also, there was an issue with Safari which was fixed in the latest version (15.5) where it was required to clear the canvas before rendering the scene. I only added comments since this issue has been patched, should we add it anyway? * Update webgl2_multiple_rendertargets.html
* WebGLMultipleRenderTargets: Example fix iOS with MSAA There is another issue only on iOS, some texture types will break in certain cases. I don't have an explanation of the why, I think it's just a bug. Also, there was an issue with Safari which was fixed in the latest version (15.5) where it was required to clear the canvas before rendering the scene. I only added comments since this issue has been patched, should we add it anyway? * Update webgl2_multiple_rendertargets.html
There is another issue only on iOS, some texture types will break in certain cases. I don't have an explanation of the why, I think it's just a bug.
Also, there was an issue with Safari which was fixed in the latest version (15.5) where it was required to clear the canvas before rendering the scene. I only added comments since this issue has been patched, should we add it anyway?