Skip to content

Commit e1fd318

Browse files
author
N8
committed
slightly reduce correlation between ao and denoising
1 parent 8dbe33e commit e1fd318

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

dist/N8AO.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/N8AO.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/N8AO.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/N8AO.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example_postprocessing/N8AO.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example_postprocessing/N8AO.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8ao",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"description": "An efficient and visually pleasing implementation of SSAO with an emphasis on temporal stability and artist control.",
55
"main": "dist/N8AO.js",
66
"scripts": {

src/PoissionBlur.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ const PoissionBlur = {
116116
float size = radius;
117117
float angle;
118118
if (index == 0.0) {
119-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).x * PI2;
119+
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).w * PI2;
120120
} else if (index == 1.0) {
121-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).y * PI2;
122-
} else if (index == 2.0) {
123121
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).z * PI2;
122+
} else if (index == 2.0) {
123+
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).y * PI2;
124124
} else {
125-
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).w * PI2;
125+
angle = texture2D(blueNoise, gl_FragCoord.xy / 128.0).x * PI2;
126126
}
127127
128128
mat2 rotationMatrix = mat2(cos(angle), -sin(angle), sin(angle), cos(angle));

0 commit comments

Comments
 (0)