@react-three/postprocessing 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -623,7 +623,7 @@ var SSAO = /*#__PURE__*/React.forwardRef(function SSAO(props, ref) {
623
623
  return null;
624
624
  }
625
625
 
626
- return new postprocessing.SSAOEffect(camera, normalPass ? normalPass.texture : null, _extends__default["default"]({
626
+ return new postprocessing.SSAOEffect(camera, normalPass && !downSamplingPass ? normalPass.texture : null, _extends__default["default"]({
627
627
  blendFunction: postprocessing.BlendFunction.MULTIPLY,
628
628
  samples: 30,
629
629
  rings: 4,
@@ -639,7 +639,8 @@ var SSAO = /*#__PURE__*/React.forwardRef(function SSAO(props, ref) {
639
639
  color: null,
640
640
  // @ts-ignore
641
641
  normalDepthBuffer: downSamplingPass ? downSamplingPass.texture : null,
642
- resolutionScale: resolutionScale != null ? resolutionScale : 1
642
+ resolutionScale: resolutionScale != null ? resolutionScale : 1,
643
+ depthAwareUpsampling: true
643
644
  }, props));
644
645
  }, [camera, normalPass, props]);
645
646
  return /*#__PURE__*/React__default["default"].createElement("primitive", {
package/dist/index.js CHANGED
@@ -506,7 +506,7 @@ const SSAO = /*#__PURE__*/forwardRef(function SSAO(props, ref) {
506
506
  return null;
507
507
  }
508
508
 
509
- return new SSAOEffect(camera, normalPass ? normalPass.texture : null, {
509
+ return new SSAOEffect(camera, normalPass && !downSamplingPass ? normalPass.texture : null, {
510
510
  blendFunction: BlendFunction.MULTIPLY,
511
511
  samples: 30,
512
512
  rings: 4,
@@ -523,6 +523,7 @@ const SSAO = /*#__PURE__*/forwardRef(function SSAO(props, ref) {
523
523
  // @ts-ignore
524
524
  normalDepthBuffer: downSamplingPass ? downSamplingPass.texture : null,
525
525
  resolutionScale: resolutionScale != null ? resolutionScale : 1,
526
+ depthAwareUpsampling: true,
526
527
  ...props
527
528
  });
528
529
  }, [camera, normalPass, props]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/postprocessing",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "postprocessing wrapper for React and @react-three/fiber",
5
5
  "keywords": [
6
6
  "postprocessing",