大约有 52 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
...derTexture修改为MulSampleRenderTexture(MulSampleRenderTexture只能在webgl2上有用)。并且将_camera.msaa设为true。修改代码如下所示: 2022-05-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 158*****197 相关问...
来源: Laya_社区 发布时间: 20220509
...ide新建2D示例项目,在ios系统15.0 和15.1.1版本上,Config.useWebGL2 = true; 开启userwebgl2 (isAntialias开启关闭都可以 )会导致花屏 [attach]29809[/attach] [attach]29810[/attach] 在ios15.4.1系统版本上开启Config.useWebGL2 = true,如果开启isAntialias会闪屏...
来源: Laya_社区 发布时间: 20220707
...laya.core.js:906 Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLTexture'. 代码如下:// 创建video对象 let videoElement = new Laya.Video(); videoElement.x = 0; videoElement.y = 0; videoElement.size(1920,1080); videoElement.loo...
来源: Laya_社区 发布时间: 20200722
...2.1.0版本正常 Uncaught TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader'. at ParticleShader._compile (libs/laya.core.js:2554) at ParticleShader.recreateResource (libs/laya.core.js:2529) at new Shader (libs/laya.cor...
来源: Laya_社区 发布时间: 20190808
...享下,直接上代码了 shot_4_4_4_4():void{ let gl:WebGL2RenderingContext = (Laya.WebGLContext as any).mainContext; let pixels:Uint8Array = new Uint8Array(gl.drawingBufferWidth*gl.drawingBufferHeight*4); gl.readPixels(0,0,gl.drawingBuffer...
来源: Laya_社区 发布时间: 20200815
...个属于花屏问题,你只加了黑屏问题的解决方案。设置useWebGL2为false就好了。 Laya_Fred • 2021-09-30 10:47 @张燕海: 解决方案内的抗锯齿与webgl2的设置,需要在初始化之前完成。 张燕海 • 2021-09-30 10:58 好的,我再试下。
来源: Laya_社区 发布时间: 20210929
... }) 错误信息:TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader' 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 1554865771...
来源: Laya_社区 发布时间: 20190808
...(WebGLRenderContext2D.js:137:71) at WebGLSetRendertarget2DCMD.apply (WebGL2DRenderCMD.js:18:17) at WebGLRenderContext2D.js:159:21 at Array.forEach (<anonymous>) at WebglRenderContext2D.runCMDList (WebGLRenderContext2D.js:158:14) at CommandBuffer2D.apply (CommandBu...
来源: Laya_社区 发布时间: 20250804
... laya.d3.js:1 Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGL2RenderingContext': parameter 1 is not of type 'WebGLShader'. at ShaderInstance._createShader (laya.d3.js:1) at ShaderInstance._create (laya.d3.js:1) at new ShaderInstance (laya.d3.js:1) at Shad...
来源: Laya_社区 发布时间: 20191024
...DataAsync(0, 0, 50, 28, out) as Uint8Array; let gl:WebGLRenderingContext | WebGL2RenderingContext = Laya.WebGLEngine.instance.gl; let errorCode:number = gl.getError(); if(errorCode != 0) { console.log("webgl报错了,错误代码为" + errorCode); } 3 camera勾选hdr或者msaa 运行...
来源: Laya_社区 发布时间: 20250916