大约有 49 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...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
... }) 错误信息:TypeError: Failed to execute 'attachShader' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLShader' 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 1554865771...
来源: Laya_社区 发布时间: 20190808
...个属于花屏问题,你只加了黑屏问题的解决方案。设置useWebGL2为false就好了。 Laya_Fred • 2021-09-30 10:47 @张燕海: 解决方案内的抗锯齿与webgl2的设置,需要在初始化之前完成。 张燕海 • 2021-09-30 10:58 好的,我再试下。
来源: Laya_社区 发布时间: 20210929
...(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
...One (WebGLRenderContext2D.js:156:14) at WebGLDraw2DElementCMD.apply (WebGL2DRenderCMD.js:32:21) at WebGLRenderContext2D.js:166:21 at Array.forEach (<anonymous>) at WebglRenderContext2D.runCMDList (WebGLRenderContext2D.js:165:14) at CommandBuffer2D.apply (CommandBu...
来源: Laya_社区 发布时间: 20250928
...enderTexture MulSampleRenderTexture类用于创建多重采样渲染目标 webGL2.0多重采样才会生效 Hierarchy RenderTexture MulSampleRenderTexture Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _inPool _isCameraTarget _renderTarget destoryedImmediately loc...
来源: Laya3.0_api 发布时间: 20231102