浏览代码

WebGLMultipleRenderTargets: Example fix iOS with MSAA (#24141)

* 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
Renaud Rohlinger 3 年之前
父节点
当前提交
dfd10cbc00
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      examples/webgl2_multiple_rendertargets.html

+ 0 - 1
examples/webgl2_multiple_rendertargets.html

@@ -164,7 +164,6 @@
 
 					renderTarget.texture[ i ].minFilter = THREE.NearestFilter;
 					renderTarget.texture[ i ].magFilter = THREE.NearestFilter;
-					renderTarget.texture[ i ].type = THREE.FloatType;
 
 				}