大约有 186 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0046 秒)
Laya_社区(75) Laya2.0_文档(27) Laya3.0_api(24) Laya_示例(22) laya_api(13) Laya2.0_api(12) Laya3.0_文档(10) Laya2.0_示例(3)
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210715
...裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(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....
来源: Laya_社区 发布时间: 20180108
... 开始编译 -------------------------------------- [19:13:20] Working directory changed to C:\GreenSoft\LayaAirIDE_beta\resources\app [19:13:20] Using gulpfile ~\Documents\LayaBox2\Demo_MyLaya3DWithWechat2\.laya\gulpfile.js [19:13:20] Starting 'default'... [19:13:20] Finished 'default' after 434...
来源: Laya_社区 发布时间: 20180916
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地进行...
来源: Laya2.0_文档 发布时间: 20210715
...ue; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // var directionLight = scene.addChild(new Laya.DirectionLight()); // directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); // directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); scene.ambientColor = new Laya.Vector3(0.0, ...
来源: Laya_社区 发布时间: 20180126
...} } } import laya.display.Sprite; class Maggot extends Sprite { public var direction:Number; public var turningSpeed:Number; public var speed:Number; public var offset:Number; }
来源: Laya_示例 发布时间: 20241125
...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.4); directionLight.direction = new Laya.Vector3(1, -1, -1); Laya.Stat.show(0,30) var box = scene.addChild(new Lay...
来源: Laya_社区 发布时间: 20180104
....Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(-5,10,-5)); //设置灯光方向 light.direction = new Laya.Vector3(1, -1, 1);...
来源: Laya_社区 发布时间: 20180302
...} } } import laya.display.Sprite; class Maggot extends Sprite { public var direction:Number; public var turningSpeed:Number; public var speed:Number; public var offset:Number; }
来源: Laya2.0_示例 发布时间: 20241125
...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...
来源: Laya_社区 发布时间: 20170319