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

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

31. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...

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

32. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 87%]

... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...

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

33. 从图集中创建Texture2D问题 [ 85%]

从图集中创建Texture2D问题 我在做物品的掉落渲染,需要用到Texture2D对象。我本以为Texture与Texture2D是一样的,但当我通过Texture2D的load方法获取物品图集中的图片时遇到了问题:获取出的图片不是我某个物品的,而是整个物品图...

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

34. 天空-天空穹 [ 84%]

...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...

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

35. Texture2D.load 中url 不能是网络图片吗 [ 84%]

Texture2D.load 中url 不能是网络图片吗 Laya.Texture2D.load("res/layabox.png"); 2018-07-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这个是3d里的,你搞错接口了 201...

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

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

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

37. texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) [ 83%]

texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) 如果是Laya.Texture2D.load的加载方式,默认加载的是texture2D,会自动设置wrapModeU和wrapModeV为平铺,在使用官方的纹理平铺案例的图片时,发现是没问题的,而使用自己的...

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

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

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

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

39. 材质-BlinnPhong-高光贴图 [ 81%]

....skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private scene:Laya.Scene;...

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

40. 自定义shader-地形shader [ 81%]

...al = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.pn...

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