大约有 189 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0091 秒)
..../../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
Laya3D 官方请看:有关Laya.MeshSprite3D.instantiate的Bug 报错内容如下: //===================不报错====================== let temp:Laya.Sprite3D = Laya.Sprite3D.load("res/Coin/layaScene.lh") as Laya.Sprite3D; scene.addChild(temp); temp.on(Laya.Event.HIERARCHY_LOADED,this...
来源: Laya_社区 发布时间: 20180827
...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
有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 _disObj3d = Sprite3D.load("../../res/models/cike.lh"); _scene3d.addChild(_disObj3d); _disObj3d.once(Event.HIERARCHY_LOADED, null, function(sender:Sprite3D):void { var ms:MeshSprite3D = _disObj3d...
来源: Laya_社区 发布时间: 20170101
...组件 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
...dler.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...
来源: Laya2.0_文档 发布时间: 20210715
...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