大约有 211 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0049 秒)
...e = Laya.stage.addChild(new Laya.Scene3D()); scene.ambientColor = new Laya.Vector3(1, 1, 1); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6.2, 10.5)); camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addCompone...
来源: Laya_社区 发布时间: 20191112
...ddChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Laya.Vector3(1.6, 1.6, 1.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //加载到场景 s...
来源: Laya_社区 发布时间: 20180108
...h.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture...
来源: Laya_社区 发布时间: 20190717
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6...
来源: Laya2.0_文档 发布时间: 20210715
...aya.Camera(0, 0.1, 0)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 20)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = new Laya.Vector4(0.2, 0.2, 0.2, 1.0); var directionLight = scene.addChild(new Laya.DirectionLight()) as Laya.Direction...
来源: Laya_社区 发布时间: 20220815
...ene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, co...
来源: Laya_社区 发布时间: 20200903
..._NONE; Laya.Stat.show(); this.tmpVector = new Laya.Vector3(0, 0, 0); this.scene = Laya.stage.addChild(new Laya.Scene3D()); //初始化照相机 let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.tra...
来源: Laya_社区 发布时间: 20191009
...rt Vector2 = Laya.Vector2; import Vector3 = Laya.Vector3; import Vector4 = Laya.Vector4; import Particle3D = Laya.Particle3D; import TextureSh...
来源: Laya_社区 发布时间: 20170605
...ya.Camera; camera.orthographic = true; camera.transform.translate(new Laya.Vector3(0, 4, 8),false); camera.transform.lookAt(new Laya.Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动...
来源: Laya_社区 发布时间: 20180302
... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; this.upVector3 = new Laya.Vector3(0, 1, 0); //预加载所有资源 let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, ...
来源: Laya_社区 发布时间: 20190531