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

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

1. Mesh网格-自定义网格 [ 100%]

... new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); //正方体 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(1.5, 0.25, 0.6); box.transform.rotate(ne...

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

2. 3D场景-地形场景 [ 98%]

..../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; var meshSprite3D = scene.getChildByName('Scenes').getChildByName('HeightMap'); meshSprite3D.active = false; var meshSprite3D1 = scene.getChildByName('Scenes').getChildByName('Area'); meshSprite3D1.active = false; }); class Terrai...

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

3. 射线检测-选取物体 [ 96%]

... 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_示例 发布时间: 20241118

4. 动画-旧版骨骼动画 [ 94%]

...组件 function addSkinComponent(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var skinAni = meshSprite3D.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemplet.load(skinAniUrl[0]); skinAni.player.play(); } for (var i = 0, n = spirit3D._chi...

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

5. 材质-PBRStandard材质 [ 94%]

...dardMaterial.SmoothnessSource_MetallicGlossTexture_Alpha; var barrel: Laya.MeshSprite3D = scene.getChildByName("Wooden_Barrel") as Laya.MeshSprite3D; var barrel1: Laya.MeshSprite3D = scene.getChildByName("Wooden_Barrel (1)") as Laya.MeshSprite3D; var barrel2: Laya.MeshSprite3D = scene.getChildByName...

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

6. 材质-BlinnPhong-漫反射贴图 [ 94%]

...2/skyCube.ltc"); camera.sky = skyBox; var earth1 = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh())); earth1.transform.position = new Laya.Vector3(-0.6, 0, 0); var earth2 = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh())); earth2.transform.position = new Laya.Vector3(0.6, 0, 0...

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

7. 材质-BlinnPhong-反射贴图 [ 93%]

... = textureCube; camera.sky = skyBox; var teapot1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/staticModel/teapot/teapot-Teapot001.lm"))); teapot1.transform.position = new Laya.Vector3(-0.8, 0, 0); teapot1.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.707...

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

8. 材质-物理基础渲染材质 [ 92%]

...br/n1.png'); mtl.roughness = x / rnum; mtl.metaless = y / mnum; var sphere:MeshSprite3D = scene.addChild( new MeshSprite3D(new SphereMesh(0.1, 32, 32))) as MeshSprite3D; sphere.meshRender.sharedMaterial = mtl; sphere.transform.localPosition = new Vector3((x-rnum/2)*(w/rnum), (y-mnum/2)*(h/mnum), -2)...

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

9. 射线检测-射线检测 [ 90%]

... onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm"))); sprite3d2 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm"))); sp...

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

10. 射线检测-放置物体 [ 90%]

... 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_示例 发布时间: 20241118