大约有 1,726 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1387) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(18) Laya_示例(8) Laya2.0_示例(5)
火狐浏览器上webgl异常 Error: WebGL: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing tex...
来源: Laya_社区 发布时间: 20171120
...edata 无法直接获取, 需要通过 drawToCanvas 然后再 new 一个texture 然后 texture.getPixels() 这 每次都要重新这样获取像素? 2. 在webgl 的情况下,上面的那个方法无效 3. 获取到了像素,但是putimagedata 又不生效 由于官方提供的 texture.getP...
来源: Laya_社区 发布时间: 20171201
graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会不断增多,为了优化相处了一个方案。 没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...
来源: Laya_社区 发布时间: 20170724
...nvas 的图形转blob; 2.转完了存内存然后再到你程序里创建texture; 3.把blob给texture; 4.把图片对象的textrue对象设置为你刚刚已经给了blob的texture; 不报错也不显示的问题可能是因为你加入的canvas没有进入渲染树,不会参与帧刷新 2...
来源: Laya_社区 发布时间: 20201226
...text': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225) at Texture2D.__proto.recreateResource (laya.d3.js:37271) at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329) at ResInfo.onLoaded (laya.core.js:13189)...
来源: Laya_社区 发布时间: 20190227
... 例如Mesh-BlinnPhong.ps这个文件中: #ifdef LIGHTMAP finalDiffuse=texture2D(u_LightMap, v_LightMapUV).rgb*2.0; //float exponent = texture2D(u_LightMap, v_LightMapUV).a; //finalDiffuse = texture2D(u_LightMap, v_LightMapUV).rgb; //float ratio = pow(2.0, exponent * 255.0 - (128.0 + 8.0)); //fina...
来源: Laya_社区 发布时间: 20180223
...ader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); ``` 使用Graphics.drawTexture并不会...
来源: Laya2.0_文档 发布时间: 20210714
...text': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225) at Texture2D.__proto.recreateResource (laya.d3.js:37271) at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329) at ResInfo.onLoaded (laya.core.js:13189)...
来源: Laya_社区 发布时间: 20190323
...: 1, //弹力 restitution:0.4, container:this.ballBox, render: { sprite: { texture: "comp/basketball.png", xOffset: 34, yOffset: 34, } } }); 我想通过代码随时更改这个刚体上的texture贴图,this.ball.render.sprite.texture="comp/2.png"这个方法只能在游戏刚开始时执行一遍...
来源: Laya_社区 发布时间: 20180716
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505