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

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

21. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 80%]

...//创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ...

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

22. laya.d3.core.HeightMap [ 78%]

...ber) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...

来源: laya_api 发布时间: 20170929

23. laya.d3.core.HeightMap [ 78%]

...ber) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...

来源: Laya2.0_api 发布时间: 20190513

24. laya.resource.Texture2D_API3.0 [ 78%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

来源: Laya3.0_api 发布时间: 20231115

25. texture 怎么改变颜色 [ 77%]

...复问题请先登录 发起人 zsytssk 相关问题 Texture如何转换成Texture2D有人搞过吗 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! 微信真机下游戏MAX_TE...

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

26. localRotationEulerY旋转位置错误 [ 77%]

...  var planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void {             planeMat.albedoTexture = tex;         }));         //设置纹理平铺和偏移...

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

27. 关于Texture的nv [ 76%]

...回复问题请先登录 发起人 tobe 相关问题 Texture如何转换成Texture2D有人搞过吗 Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 请问layabox支持rende...

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

28. Unlit材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 76%]

...it材质 var material2:UnlitMaterial = new UnlitMaterial(); //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/...

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

29. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 76%]

... var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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

30. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 76%]

...false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

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