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

大约有 284 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0044 秒)

11. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 93%]

...与内容相关的链接 提交 1 个回复 淡淡的疯 赞同来自: var texture2D = new Laya.Texture2D(); texture2D.loadImageSource(sharedCanvas, true);   var texture = new Laya.Texture(texture2D); //texture.bitmap.alwaysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.wi...

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

12. 自定义shader-边缘光照shader [ 93%]

...omMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1, 0.7, 0)); var customMaterial2 = new CustomMaterial(); customMaterial2.setDiffuseTexture(Laya.Te...

来源: Laya_示例 发布时间: 20240929

13. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 93%]

Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? 代码如下: var url = "res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ v...

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

14. android下layabox调用Laya.Texture2D.load报错 [ 93%]

LayaPlayer android下layabox调用Laya.Texture2D.load报错 看源码是WebGL.mainContext为空,请问会是配置问题,还是某种支持问题吗? (PS:: h5浏览器运行是正常的)   报错堆栈: 02-06 14:59:43.858  6545  6658 I LayaBox : alert=http://10.0.1.72/game/dev-loca ... 566...

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

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

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

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

16. 请问Texture2D如何用base64字符串构建对象 [ 92%]

请问Texture2D如何用base64字符串构建对象 给模型贴图的时候需要用base64位字符串。官方api中Texture2D的load方法的参数说明为 : Texture2D地址 。这个地址好像只能传入图片的绝对路径,如何使用base64加载呢?   附件 : --> 2018-05-18 添...

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

17. 怎么给从模型生成的地形TerrainMaterial材质??? [ 92%]

...aterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.load("map2.png"); te...

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

18. 高级应用-寻路导航 [ 92%]

..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...

来源: Laya_示例 发布时间: 20240929

19. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 92%]

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...

来源: Laya3.0_文档 发布时间: 20230303

20. WaterPrimaryMaterial的使用 [ 91%]

...ar material: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...

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