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

大约有 4 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0014 秒)

1. 灯光-方向光 [ 100%]

....Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _direction; });class DirectionLightDemo ...

来源: Laya_示例 发布时间: 20241119

2. 灯光-点光 [ 98%]

....Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(pointLight.transform.position, _quaternion, _position); pointLight.transform.position = _position; });class PointLightDemo { private scene: Laya.Sce...

来源: Laya_示例 发布时间: 20241119

3. 灯光-聚光 [ 97%]

...aya.Vector3(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(spotLight.transform.position, _quaternion, _position); spotLight.transform.position = _position; var _direction = spotLight.direction; Laya.Vector3....

来源: Laya_示例 发布时间: 20241119

4. 高级应用-实时阴影 [ 93%]

....Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _direction; }); function onComplete() { ...

来源: Laya_示例 发布时间: 20241119