Skip to content

Commit

Permalink
fix(demo): taa shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed May 7, 2023
1 parent 115984f commit dee94ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/public/demos/advanced/Sample_taa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class Sample_TAA {
scene: Scene3D;

async run() {
Engine3D.setting.shadow.enable = false;
Engine3D.setting.shadow.debug = true;
Engine3D.setting.shadow.enable = true;
Engine3D.setting.shadow.shadowBound = 100;
Engine3D.setting.shadow.shadowBias = 0.0001;

Expand All @@ -23,7 +22,7 @@ export class Sample_TAA {
let mainCamera = CameraUtil.createCamera3DObject(this.scene, 'camera');
mainCamera.perspective(60, webGPUContext.aspect, 1, 5000.0);
let ctrl = mainCamera.object3D.addComponent(HoverCameraController);
ctrl.setCamera(0, -15, 20);
ctrl.setCamera(0, -15, 30);
await this.initScene();

let view = new View3D();
Expand Down

0 comments on commit dee94ef

Please sign in to comment.