Skip to content

Commit

Permalink
fix(sample): update shadowRameRate (#132)
Browse files Browse the repository at this point in the history
prevent shadow flashing on animation samples
  • Loading branch information
lslzl3000 committed May 12, 2023
1 parent 6097034 commit 30e92d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions samples/animation/Sample_Skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ class Sample_Skeleton {
scene: Scene3D;
async run() {

Engine3D.setting.material.materialDebug = false;
Engine3D.setting.material.materialChannelDebug = true;
Engine3D.setting.shadow.autoUpdate = true;
Engine3D.setting.shadow.updateFrameRate = 2;
Engine3D.setting.shadow.updateFrameRate = 1;
Engine3D.setting.shadow.shadowBound = 200;
Engine3D.setting.shadow.shadowBias = 0.0001;

Expand Down
2 changes: 1 addition & 1 deletion samples/animation/Sample_Skeleton2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Sample_Skeleton2 {
async run() {

Engine3D.setting.shadow.autoUpdate = true;
Engine3D.setting.shadow.updateFrameRate = 2;
Engine3D.setting.shadow.updateFrameRate = 1;
Engine3D.setting.shadow.shadowBound = 500;
Engine3D.setting.shadow.shadowBias = 0.0001;

Expand Down

0 comments on commit 30e92d6

Please sign in to comment.