大约有 120 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
... { for (var j = 0; j < 10; j++) { // var box = parent.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(boxSize,boxSize,2,2))); var box = parent.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(boxSize, boxSize, .5))); // var boxSys = new Zszen.BoxPlus(boxSize,boxSize,boxSize,"res/simbol/box2.png"...
来源: Laya_社区 发布时间: 20180117
...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(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; earth1....
来源: Laya2.0_文档 发布时间: 20210715
...al' of undefined this.unit3D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D); this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0)); var material:Laya.U...
来源: Laya_社区 发布时间: 20190907
....Sprite3D()); //添加自定义模型 var box = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.position = new Laya.Vector3(0, 0.5, 0); var material = new Laya.StandardMaterial(); //降低反射率,加强反射贴图反射 material.albedo = new Laya.Vector4(0.8, ...
来源: Laya_社区 发布时间: 20180103
...:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albe...
来源: Laya2.0_文档 发布时间: 20210714
...er = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(2, 2, 2)) ) as Laya.MeshSprite3D; box.transform.translate(new Laya.Vector3(5, 5, 5)); box.transform.rotate(new Laya.Vector3(0, 45, 0), fal...
来源: Laya_社区 发布时间: 20200917
...me=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())); earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/thre...
来源: Laya2.0_文档 发布时间: 20210714
...a.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Lay...
来源: Laya_示例 发布时间: 20241118
...estSceneUI { private newScene:Laya.Scene3D; private boxA: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); ...
来源: Laya_社区 发布时间: 20210103
...实是一个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