大约有 189 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0039 秒)
...me=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Tex...
来源: Laya2.0_文档 发布时间: 20210714
...ngMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? 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.Blin...
来源: Laya_社区 发布时间: 20190126
...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/MeshSprite3D" MeshSprite3D Class MeshSprite3D MeshSprite3D 类用于创建网格。 Hierarchy RenderableSprite3D MeshSprite3D Index Constructors constructor Properties _extra _scene _url name tag LIGHTMAP LIGHTMAPSCALEOFFSET ...
来源: Laya3.0_api 发布时间: 20231115
...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
...Child(new Laya.Sprite3D()); var skinMesh0 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Sphere.lm"))); ...
来源: Laya_社区 发布时间: 20170223
...dMatrix.setForward(new Vector3(1, -1, 0)); //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...
来源: Laya2.0_文档 发布时间: 20210714
...实是一个box,只不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Textur...
来源: Laya_社区 发布时间: 20161223
...X = posX || 0; posY = posY || 0; posZ = posZ || 0; var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); materi...
来源: Laya_社区 发布时间: 20180402
...Forward(new Laya.Vector3(1, -1, 0)); //添加自定义模型 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...
来源: Laya2.0_文档 发布时间: 20210714
...e:string]:AnimationTemplet} = {}; private meshes : Array<MeshSprite3D> = []; private OnHierarchyLoaded() { for (let v of this._childs[0]._childs) { let mesh = v as MeshSprite3D; m...
来源: Laya_社区 发布时间: 20170608