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

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

461. matter中layasprite怎么改变图片大小? [ 76%]

...role:any = Matter.Bodies.circle(x,y,50,roleOptions);//这里不需要定义texture或者layaSprite var roleImg = new Laya.Sprite(); roleImg.loadImage("../xx.png"x,y,width,height);//直接定义roleImg的大小及相对位置 roleImg.zOrder = 2;//还能定义层级,这个层级是与laya直接相...

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

462. 微信web页面贴图无法加载 [ 75%]

...ap: Can not generate mips [.Offscreen-For-WebGL-0x61872800]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering. WebGL: too many errors, no more errors will be reported to the console for this context. 但是在同一台...

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

463. ios打包后【单机版】运行崩溃,附上报错log与demo [ 75%]

...07 13:33:42.747450+0800 sanguo[777:557379]  getExtension WEBGL_compressed_texture_s3tc Â∞öÊú™ÊîØÊåÅ 2019-01-07 13:33:42.747689+0800 sanguo[777:557379]  getExtension WEBKIT_WEBGL_compressed_texture_s3tc Â∞öÊú™ÊîØÊåÅ 2019-01-07 13:33:42.747810+0800 sanguo[777:557379]  ge...

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

464. Unity导出的光照贴图带有Alpha但Shader中没有使用,Laya是否在加载PNG的时候有预乘Alpha? [ 75%]

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

465. Image [ 75%]

...age var img___=new Image(); html的 image标签 怎么才能转换成 laya.texture     var img___=new Image();         img___.src="res/card/select_main_card_bg.png"         img___.onload = function(){             var image = new Laya.Image()             image.source = img___  ...

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

466. 合并小图片 [ 75%]

...码 截出来的每张小图没有问题了,什么 把小图写到一个texture中去 附件 : --> 2017-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: asdf131 你可以把拿到的小...

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

467. RenderTexture: unkonw depth format [ 75%]

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

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

468. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 75%]

...代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资...

来源: Laya2.0_文档 发布时间: 20210715

469. Laya.loader.load 教程代码出错 [ 74%]

...ay.Sprite;     import laya.utils.Handler;     import laya.resource.Texture;     public class LayaSample {         private var img:Sprite ;         private var index:int ;         public function LayaSample() {             //初始化引擎       ...

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

470. 模型的动态合并 [ 74%]

...网格,只是做材质合并是不是可行的?   Rect[] rects = texture.PackTextures(textures, 10, 1024); 这个是unity里合并纹理的代码,laya能不能实现? 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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