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

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

1. 材质-BlinnPhong-反射贴图 [ 100%]

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

2. Mesh网格-网格加载 [ 99%]

...ector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Lay...

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

3. 射线检测-射线检测 [ 95%]

...e)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/NvWu/NvWu-she...

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

4. 材质-BlinnPhong材质加载 [ 91%]

...on = new Laya.Vector3(1, -1, -1); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); //加载材质 layaMonkey.meshRender.material = Laya.StandardMaterial.load("../../res/threeDimen/skinModel...

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

5. 高级应用-实时阴影 [ 88%]

...imen/staticModel/grid/plane.lh")); //地面接收阴影 grid.getChildAt(0).meshRender.receiveShadow = true; var staticLayaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); staticLayaMonkey.meshRende...

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

6. 射线检测-选取物体 [ 87%]

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

7. 射线检测-放置物体 [ 79%]

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

8. 自定义shader-简单shader [ 78%]

...a.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Lay...

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

9. 射线检测-点击行走 [ 76%]

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

10. 天空-天空盒 [ 69%]

...t laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.TextureCube; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import la...

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