• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 85 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)

41. 关于Texture.getTexturePixels()函数BUG的修复代码 [ 67%]

关于Texture.getTexturePixels()函数BUG的修复代码 将变量uk的值改为1.0/texw 将变量uv的值改为1.0/texh 即可完美解决现在取像素值错误的问题。 uvh,uvw两个变量不需要了,可以删除   附件 : --> 2019-11-08 添加评论 免费帖 --> 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20191108

42. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 67%]

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

43. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 67%]

2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? 原本像实现将场景的东西绘制到一个sprite上,参考以前的截屏代码是可以的。 然后1.x 上我实现了,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, u...

来源: Laya_社区 发布时间: 20190624

44. laya.ani.GraphicsAni_API3.0 [ 67%]

...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

45. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...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

46. Texture如何转换成Texture2D有人搞过吗 [ 65%]

Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...

来源: Laya_社区 发布时间: 20181221

47. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 65%]

... 个回复 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

48. RenderTexture: unkonw depth format [ 65%]

RenderTexture: unkonw depth format 版本: Laya 2.0 问题:只要使用遮罩滤镜就会出现 RenderTexture: unkonw depth format,如果遮罩较多,直接崩溃。   2019-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

来源: Laya_社区 发布时间: 20190525

49. 引擎 TiledMap 居然不支持图块翻转 [ 64%]

...tor() {             super(...arguments);             this._tileTextureSet = null;             this._aniName = null;         }         setTileTextureSet (aniName, tileTextureSet) {             this._aniName = aniName;             this._tileTextureSet = tileTextur...

来源: Laya_社区 发布时间: 20220627

50. htmlCanvas 像素级操作 [ 64%]

...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