• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 156 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)

141. LayaAir3D基础数学工具(TypeScript-3D基础(TS)-LayaAir3D图形系统基础概念) [ 47%]

...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** ​ 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...

来源: Laya2.0_文档 发布时间: 20210714

142. LayaAir3D基础数学工具(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 47%]

...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** ​ 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地...

来源: Laya2.0_文档 发布时间: 20210715

143. LayaAir2在编辑器里面新建默认的3D项目(TS语言),无法完成编译和运行。 [ 47%]

...ir3d.ts(26,24): Error TS2339: Property 'direction' does not exist on type 'DirectionLight'.     打开 LayaAir3D.ts 文件,发现报了5条错误:     是不是新建3D项目的模板还没换号啊? 附件 : --> 2018-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

来源: Laya_社区 发布时间: 20180916

144. LayaAir3D基础数学工具(ActionScript-3D基础(AS3)-LayaAir3D图形系统基础概念) [ 47%]

...用了向量作为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** ​ 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地进行...

来源: Laya2.0_文档 发布时间: 20210715

145. laya.d3.core.light.DirectionLightCom_API3.0 [ 46%]

...ted All Inherited Externals Only exported Menu Globals "laya/d3/core/light/DirectionLightCom" DirectionLightCom Class DirectionLightCom DirectionLight 类用于创建平行光。 Hierarchy Light DirectionLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scr...

来源: Laya3.0_api 发布时间: 20231115

146. [含Demo]Laya2.0.1出包微信小游戏Android黑屏 expected Number(uniform4f) [ 44%]

...shRenderer.material = material;后插入如下代码: // 自定义内容 directionLight.shadow = true; box.meshRenderer.castShadow = true; box.meshRenderer.receiveShadow = true;3. F6运行,渲染正常 4. 打包发布并导入微信小游戏工具,使用基础库2.6.6 5. iOS扫码启动,渲...

来源: Laya_社区 发布时间: 20190423

147. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...ht(): void { let directlithtComponent = this.directLight.getComponent(Laya.DirectionLight2D); directlithtComponent.color = new Laya.Color(1, 1, 1); directlithtComponent.intensity = 0.2; } // 配置背景 setBackground(): void { let mesh2Drender = this.background.getComponent(Laya.Mesh2DRender); mesh...

来源: Laya3.0_文档 发布时间: 20251010

148. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...LayaAir3.3版本开始,我们支持了2D灯光,例如:2D方向光(DirectionLight2D)、2D精灵光(SpriteLight2D)、2D自由形态光(FreeformLight2D)、2D聚光灯(SpotLight2D)这几个组件。本章节我们具体介绍如何使用灯光,以及这些灯光组件的基类共...

来源: Laya3.0_文档 发布时间: 20251010

149. 3D概念入门 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...环境光等都是光效,而非光源。3D灯光有四种:平行光(DirectionLight)、点光(PointLight)、聚光(SpotLight)、区域光(AreaLight)。LayaAir引擎不仅支持这些光源的任意类型,还支持在同一场景下任意添加多个不同类型的光源。 平...

来源: Laya3.0_文档 发布时间: 20251010

150. laya.d3.core.light.PointLight [ 32%]

...Public Constants Show Inherited Public Constants ConstantDefined By TYPE_DIRECTIONLIGHT : int = 1[static] 定义平行光类型的标记。LightSprite TYPE_POINTLIGHT : int = 2[static] 定义点光类型的标记。LightSprite TYPE_SPOTLIGHT : int = 3[static] 定义聚光类型的标记。LightS...

来源: laya_api 发布时间: 20170929