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

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

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_示例 发布时间: 20241125

2. 灯光-点光 [ 97%]

....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_示例 发布时间: 20241125

3. 灯光-聚光 [ 94%]

...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_示例 发布时间: 20241125

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

....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_示例 发布时间: 20241125