Skip to content

Commit

Permalink
refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
2youyou2 committed Jul 26, 2023
1 parent c5c7981 commit e27ba6e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cocos/rendering/post-process/passes/fsr-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@ export class FSRPass extends SettingPass {

const setting = this.setting;
this.material.setProperty('fsrParams', tempVec4.set(clamp(1.0 - setting.sharpness, 0.02, 0.98), 0, 0, 0));
this.material.setProperty(
'texSize',
tempVec4.set(
inputWidth, inputHeight,
outWidth, outHeight,
),
);
this.material.setProperty('texSize', tempVec4.set(inputWidth, inputHeight, outWidth, outHeight));

const input0 = this.lastPass!.slotName(camera, 0);
const easu = `FSR_EASU${cameraID}`;
Expand Down

0 comments on commit e27ba6e

Please sign in to comment.