Skip to content

Commit

Permalink
slightly reduce correlation between ao and denoising
Browse files Browse the repository at this point in the history
  • Loading branch information
N8 committed Nov 1, 2024
1 parent 8dbe33e commit e1fd318
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 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.

8 changes: 4 additions & 4 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.

8 changes: 4 additions & 4 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.2",
"version": "1.9.3",
"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
8 changes: 4 additions & 4 deletions src/PoissionBlur.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ const PoissionBlur = {
float size = radius;
float angle;
if (index == 0.0) {
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).x * PI2;
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).w * PI2;
} else if (index == 1.0) {
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).y * PI2;
} else if (index == 2.0) {
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).z * PI2;
} else if (index == 2.0) {
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).y * PI2;
} else {
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).w * PI2;
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).x * PI2;
}
mat2 rotationMatrix = mat2(cos(angle), -sin(angle), sin(angle), cos(angle));
Expand Down

0 comments on commit e1fd318

Please sign in to comment.