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

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

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

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

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

2. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 89%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.mesh...

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

3. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 86%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...

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

4. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 80%]

...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya....

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

5. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 73%]

...script //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球添加...

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

6. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 72%]

...`typescript //新建一个球体模型并添加到舞台上 var sphere:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(1))) as MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:SphereColliderShape = new SphereColliderShape(1); //给球添加刚体 var sphereRig...

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

7. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 71%]

...原本示例代码,去掉了示例代码的旋转摄像机 //加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子摄影机观察效果...

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

8. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat...

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

9. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 66%]

...以查看官方示例([demo地址]())。 ```typescript var material = meshSprite3D.meshRenderer.material; //法线贴图 Laya.Texture2D.load(normalMapUrl[i], Laya.Handler.create(this, function(texture) { //设置发现贴图 material.normalTexture = texture; })); ``` ![](img/5.png)(图5) ##### 高...

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

10. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 66%]

...以查看官方示例([demo地址]())。 ```typescript var material = meshSprite3D.meshRenderer.material as Laya.BlinnPhongMaterial; //法线贴图 Laya.Texture2D.load(normalMapUrl[i], Laya.Handler.create(this, function(texture) { //设置发现贴图 material.normalTexture = texture; })); ``` ![](i...

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