Skip to content

Commit

Permalink
smol modification
Browse files Browse the repository at this point in the history
  • Loading branch information
N8 committed Dec 22, 2023
1 parent 118a76c commit 41427c2
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 39 deletions.
2 changes: 1 addition & 1 deletion dist/N8AO.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/N8AO.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/N8AO.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/N8AO.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_postprocessing/N8AO.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example_postprocessing/N8AO.js.map

Large diffs are not rendered by default.

54 changes: 22 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/EffectShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void main() {
float distWorld = ortho ? linearize_depth_ortho(offset.z, near, far) : linearize_depth(offset.z, near, far);
float rangeCheck = smoothstep(0.0, 1.0, distanceFalloffToUse / (abs(distSample - distWorld)));
float rangeCheck = distSample == distWorld ? 0.0 : smoothstep(0.0, 1.0, distanceFalloffToUse / (abs(distSample - distWorld)));
float sampleValid = (clipRangeCheck.x * clipRangeCheck.y);
occluded += rangeCheck * float(sampleDepth != depth) * float(distSample + bias < distWorld) * step(
Expand Down

0 comments on commit 41427c2

Please sign in to comment.