大约有 161 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0037 秒)
...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; ea...
来源: Laya2.0_文档 发布时间: 20210715
...同处于3d场景下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Lay...
来源: Laya_社区 发布时间: 20190717
... //平面加载 let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); let planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(null, function (...
来源: Laya_社区 发布时间: 20191009
...影质量 light.shadowResolution=2048; //创建盒子模型 var box:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1.5,1.5,1.5))) as Laya.MeshSprite3D; //自身y座标旋转 box.transform.rotate(new Laya.Vector3(0,45,0),true,false); //接受阴影 box.meshRender.receiveSha...
来源: Laya_社区 发布时间: 20180307
...还在审核中,现在只支持unity中的地形导出使用。 总之,MeshSprite3D暂时不能使用TerrainMaterial 2017-06-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ebaww 相关问题 加载到舞台的3D模型不显示贴...
来源: Laya_社区 发布时间: 20170620
...andler.create(null, function(mesh:Mesh):void { teapot = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; teapot.transform.position = new Vector3(0, 1.75, 2); teapot.transform.rotate(new Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat:PBRStandardMaterial = new PBRStandardM...
来源: Laya2.0_文档 发布时间: 20210715
...义模型 var boxmesh=new Laya.BoxMesh(0.6, 0.6, 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture...
来源: Laya_社区 发布时间: 20181126
...示例([demo地址]())。 ```typescript var material:BlinnPhongMaterial = meshSprite3D.meshRenderer.material as BlinnPhongMaterial; //法线贴图 Texture2D.load(normalMapUrl[i], Handler.create(this, function(texture:Texture2D):void { //设置发现贴图 material.normalTexture = texture; })); ``` !...
来源: Laya2.0_文档 发布时间: 20210714
... //平面加载 let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); plane.transform.position = new Laya.Vector3(0, -2, 0); let planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/...
来源: Laya_社区 发布时间: 20201127
...置flat shading么 Tween没效果,对于渐变相机位移? lh文件内meshSprite添加阴影属性无效 关于同为object层,层级设置无效的问题 1.7.20beta有bug,帧属性面板打不开 问题状态 最新活动: 2017-08-25 16:42 浏览: 833 关注: 2 人 babby_bei • 2017-08-25...
来源: Laya_社区 发布时间: 20170825