大约有 363 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0058 秒)
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创建点光[左下角]---------...
来源: Laya_社区 发布时间: 20180103
...0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(1, 1, 1); ...
来源: Laya_社区 发布时间: 20210103
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20170714
...试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler =...
来源: Laya_社区 发布时间: 20190224
...rite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya.Vector3(0.2, 0, 0); private translateD: Laya.Vector3 = new Laya.Vector3(-0.2,...
来源: Laya_社区 发布时间: 20200917
...eshSprite3D(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(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.mat...
来源: Laya_社区 发布时间: 20180402
...formDemo{ private scene:Laya.Scene3D; private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private rotate:Laya.Vector3 = new Laya.Vector3(0, 1, 0); private scale:Laya.Vector3 = new Laya.Vector3()...
来源: Laya_社区 发布时间: 20190509
...a.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添...
来源: Laya_社区 发布时间: 20180427
...a.Camera(0, 0.1, 10000))); camera.transform.translate(new Laya.Vector3(0, 5, 5)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添...
来源: Laya_社区 发布时间: 20180427
...ew Laya.SpotLight()) as Laya.SpotLight; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.l...
来源: Laya_社区 发布时间: 20180515