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

reduce over-blurring occlusion at larger view distances

parent 7ea47d2a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Add occlusion color parameter
- Fix issue with outlines and orthographic camera
- Reduce over-blurring occlusion at larger view distances
## [v3.31.4] - 2023-02-24
......
......@@ -74,6 +74,8 @@ void main(void) {
float kernelSum = 0.0;
// only if kernelSize is odd
for (int i = -dOcclusionKernelSize / 2; i <= dOcclusionKernelSize / 2; i++) {
if (abs(i) > 1 && abs(float(i)) * pixelSize > 0.5) continue;
vec2 sampleCoords = coords + float(i) * offset;
if (outsideBounds(sampleCoords)) {
continue;
......
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