大约有 85 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
关于Texture.getTexturePixels()函数BUG的修复代码 将变量uk的值改为1.0/texw 将变量uv的值改为1.0/texh 即可完美解决现在取像素值错误的问题。 uvh,uvw两个变量不需要了,可以删除 附件 : --> 2019-11-08 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20191108
native 获取Texture上的某个区域的像素点 getPixels中有报错 代码如下: let tex: Laya.Texture = new Laya.Texture(); tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{ tex.getPixels(0,0,1,1); ...
来源: Laya_社区 发布时间: 20190625
2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? 原本像实现将场景的东西绘制到一个sprite上,参考以前的截屏代码是可以的。 然后1.x 上我实现了,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, u...
来源: Laya_社区 发布时间: 20190624
...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): Graphics...
来源: Laya3.0_api 发布时间: 20231115
...ump float; #endif #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientS...
来源: Laya3.0_文档 发布时间: 20251120
Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...
来源: Laya_社区 发布时间: 20181221
... 个回复 cuixueying 赞同来自: 1、譬如我有一张图片 2、通过TextureCreate创建package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class CupPhone { public function CupPhone() ...
来源: Laya_社区 发布时间: 20160506
RenderTexture: unkonw depth format 版本: Laya 2.0 问题:只要使用遮罩滤镜就会出现 RenderTexture: unkonw depth format,如果遮罩较多,直接崩溃。 2019-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190525
...tor() { super(...arguments); this._tileTextureSet = null; this._aniName = null; } setTileTextureSet (aniName, tileTextureSet) { this._aniName = aniName; this._tileTextureSet = tileTextur...
来源: Laya_社区 发布时间: 20220627
...hicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片资源 var tex = Laya.loader.getRes("../src/img/testImg.png"); //获取临时sprite的htmlCanvas var htmlCanvas = img.drawToCanvas(tex.width,tex.heigh...
来源: Laya_社区 发布时间: 20180413