Skip to content

Commit

Permalink
fix: Reduce threshold of dot gtao.
Browse files Browse the repository at this point in the history
Reduce threshold of dot gtao.
  • Loading branch information
hellmor committed Sep 6, 2023
1 parent f9950ae commit 494b827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/shader/compute/GTAO_cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export let GTAO_cs: string = /*wgsl*/ `
let distance = length(distanceVec2);
if(distance < gtaoData.maxDistance && distance > 1.0){
let sampleDir = normalize(distanceVec2);
var factor = saturate(dot(sampleDir, originNormal) - 0.01);
var factor = saturate(dot(sampleDir, originNormal) - 0.1);
factor *= 1.0 - distance / gtaoData.maxDistance;
weight += factor;
}
Expand Down

0 comments on commit 494b827

Please sign in to comment.