大约有 95 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
... //创建平行光 let directionLight = scene.addChild(new Laya.DirectionLight()); //设置平行光颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载小...
来源: Laya_社区 发布时间: 20190531
... //添加方向光 this.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生投影) ...
来源: Laya_社区 发布时间: 20181016
...ceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否...
来源: laya_api 发布时间: 20170929
...CameraMoveScript); // 创建方向光 var light = scene.addChild( new Laya.DirectionLight()); //移动灯光位置 light.transform.translate(new Laya.Vector3(0, 2 ,5)); //调整灯光方向 light.direction = new Laya.Vector3(0, -5, 1); //设置灯光环境色 light.color = new Laya.Vector3(1, 1, 1);...
来源: Laya_社区 发布时间: 20171227
... "child": }, { "type":"DirectionLight", "props":{ "isStatic":false, "name":"Directional Light", "intensity":1, "ligh...
来源: Laya_社区 发布时间: 20180122
... var light = this.MainScene3D.getChildByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index+...
来源: Laya_社区 发布时间: 20191223
...景根节点类型 private scene3D: Laya.Scene3D; @property( { type:Laya.DirectionLightCom } ) //DirectionLight组件类型 private directionLight: Laya.DirectionLightCom; @property( { type:Laya.Sprite3D } ) //Sprite3D节点类型 private cube: Laya.Sprite3D; @property( { type:Laya.Prefab } ) //加...
来源: Laya3.0_文档 发布时间: 20251010
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210714
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...
来源: Laya2.0_文档 发布时间: 20210715
...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地进行...
来源: Laya2.0_文档 发布时间: 20210715