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

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

11. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 88%]

...sTexture_Alpha; var barrel = scene.getChildByName("Wooden_Barrel") as Laya.MeshSprite3D; var barrel1 = scene.getChildByName("Wooden_Barrel (1)") as Laya.MeshSprite3D; var barrel2 = scene.getChildByName("Wooden_Barrel (2)") as Laya.MeshSprite3D; var barrel3 = scene.getChildByName("Wooden_Barrel (3)")...

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

12. WaterPrimaryMaterial的使用 [ 88%]

...l有demo吗? 我这里怎么调都是单一色块呢?   var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.Bli...

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

13. 射线检测-点击行走 [ 88%]

... new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0...

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

14. 为模型指定地形材质报错 [ 87%]

为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...

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

15. 材质-BlinnPhong-法线贴图 [ 85%]

...02, 0.002, 0.002); for (var i = 0; i < monster2._childs.length; i++) { var meshSprite3D = monster2._childs[i]; var material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.tr...

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

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

...egory=3d&group=Material&name=EffectMaterialDemo)): ```typescript var earth:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere())) as MeshSprite3D; earth.transform.position = new Vector3(0, 0, 0); //创建EffectMaterial材质 var material:EffectMaterial = new EffectMaterial(); ...

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

17. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 85%]

...创建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/gras...

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

18. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 84%]

...dler.create(null, function(tex:Texture2D):void { //使用纹理 var earth1:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat...

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

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

...片,并赋给了模型。 ```typescript //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material:BlinnPhongMaterial = new BlinnPhongMater...

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

20. localRotationEulerY旋转位置错误 [ 83%]

... //平面         var plane = this.newScene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D;         var planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.cre...

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