大约有 2,264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(1811) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(31) Laya2.0_示例(15)
...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
...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
...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
... 例如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
...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
...码 截出来的每张小图没有问题了,什么 把小图写到一个texture中去 附件 : --> 2017-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: asdf131 你可以把拿到的小...
来源: Laya_社区 发布时间: 20170227
RenderTexture: unkonw depth format 版本: Laya 2.0 问题:只要使用遮罩滤镜就会出现 RenderTexture: unkonw depth format,如果遮罩较多,直接崩溃。 2019-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190525
...代码如下: ```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
...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
...网格,只是做材质合并是不是可行的? Rect[] rects = texture.PackTextures(textures, 10, 1024); 这个是unity里合并纹理的代码,laya能不能实现? 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180131