Skip to content
Snippets Groups Projects
Commit 86512bce authored by Alexander Rose's avatar Alexander Rose
Browse files

tweak ssao-blur thresholds

parent 975f45eb
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ void main(void) {
float selfViewZ = getViewZ(selfDepth);
float pixelSize = getPixelSize(coords, selfDepth);
float maxDiffViewZ = pixelSize * 5.0;
float maxDiffViewZ = pixelSize * 10.0;
vec2 offset = vec2(uBlurDirectionX, uBlurDirectionY) / uTexSize;
......@@ -74,7 +74,7 @@ void main(void) {
float kernelSum = 0.0;
// only if kernelSize is odd
for (int i = -dOcclusionKernelSize / 2; i <= dOcclusionKernelSize / 2; i++) {
if (abs(float(i)) > 1.0 && abs(float(i)) * pixelSize > 0.5) continue;
if (abs(float(i)) > 1.0 && abs(float(i)) * pixelSize > 0.8) continue;
vec2 sampleCoords = coords + float(i) * offset;
if (outsideBounds(sampleCoords)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment