1
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user