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

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

1. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 100%]

...color.setValue(1.0, 0.5, 0.0, 1); //设置平行光的方向 var mat: Laya.Matrix4x4 = directlightSprite.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directlightSprite.transform.worldMatrix = mat; setForward 平行光的方向,分别代表x、y、z轴上的方向,...

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

2. 3D变换 · LayaAir3.0文档 · LAYABOX [ 76%]

...late(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Transform3D._tempVec...

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

3. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 41%]

...: Transform3D = destSprite3D.transform; if (worldPositionStays) { var worldMatrix: Matrix4x4 = transform.worldMatrix; original.transform.worldMatrix.cloneTo(worldMatrix); transform.worldMatrix = worldMatrix; } else { (position) && (transform.position = position); (rotation) && (trans...

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