This commit is contained in:
2026-05-22 13:33:13 +08:00
parent c504fca3de
commit 84c8752e0b
17 changed files with 361939 additions and 921 deletions

View File

@ -34,9 +34,8 @@ export class AppLight extends Monobehiver {
/** 初始化灯光并开启阴影 */
Awake(): void {
const light = new DirectionalLight(
"mainLight",
new Vector3(0, -0.5, -1),
);
// 主光源(模拟太阳)
const light = new DirectionalLight("sun", new Vector3(-1, -2, -1), this.mainApp.appScene.object);
light.intensity = 1.2;
}
}