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

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

1. 材质-PBRStandard材质 [ 100%]

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

2. 材质-物理基础渲染材质 [ 99%]

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

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

... 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. 高级应用-寻路导航 [ 93%]

...块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/...

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

5. 射线检测-放置物体 [ 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

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

...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. 自定义shader-地形shader [ 88%]

...); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMat...

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

8. 射线检测-点击行走 [ 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_示例 发布时间: 20241118

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

10. 自定义shader-边缘光照shader [ 82%]

...ion = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); var customMaterial = new CustomMaterial(); customMaterial.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/texture/earth.png")); customMaterial.setMarginalColor(ne...

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