Skip to content

Commit

Permalink
1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
N8 committed Sep 10, 2024
1 parent c36cae4 commit 0fd05e9
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 51 deletions.
30 changes: 15 additions & 15 deletions 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.

30 changes: 15 additions & 15 deletions 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.

30 changes: 15 additions & 15 deletions 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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n8ao",
"version": "1.9.0",
"version": "1.9.1",
"description": "An efficient and visually pleasing implementation of SSAO with an emphasis on temporal stability and artist control.",
"main": "dist/N8AO.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/EffectShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void main() {
#endif
#ifdef ORTHO
float distWorld = near + farMinusNear * sampleDepth;
float distWorld = near + offset.z * farMinusNear;
#else
float distWorld = (farTimesNear) / (far - offset.z * farMinusNear);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/N8AOPostPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class N8AOPostPass extends Pass {
p.fragmentShader = "#define LOGDEPTH\n" + p.fragmentShader;
}
if (ortho) {
e.fragmentShader = "#define ORTHO\n" + e.fragmentShader;
p.fragmentShader = "#define ORTHO\n" + p.fragmentShader;
}
if (this.poissonBlurQuad) {
this.poissonBlurQuad.material.dispose();
Expand Down

0 comments on commit 0fd05e9

Please sign in to comment.