大约有 33 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
..../../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
...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
...组件 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
... 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
...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
... = 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/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
...ender.receiveShadow = true; var staticLayaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); staticLayaMonkey.meshRender.material = Laya.StandardMaterial.load("../../res/threeDimen/skinModel/LayaMonk...
来源: Laya_示例 发布时间: 20241118
...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
...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