@react-three/postprocessing 2.12.2 → 2.12.3

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 CHANGED
@@ -510,7 +510,7 @@ const SSAO = React.forwardRef(function SSAO(props, ref) {
510
510
  return jsxRuntime.jsx("primitive", { ref: ref, object: effect, dispose: null });
511
511
  });
512
512
 
513
- const N8AO = React.forwardRef(({ quality, aoRadius, aoSamples, denoiseSamples, denoiseRadius, distanceFalloff, intensity }, ref) => {
513
+ const N8AO = React.forwardRef(({ quality, aoRadius = 5, aoSamples = 16, denoiseSamples = 4, denoiseRadius = 12, distanceFalloff = 1, intensity = 1, }, ref) => {
514
514
  const { camera, scene } = fiber.useThree();
515
515
  const effect = React.useMemo(() => new n8ao.N8AOPostPass(scene, camera), []);
516
516
  React.useLayoutEffect(() => {
package/dist/index.js CHANGED
@@ -490,7 +490,7 @@ const SSAO = forwardRef(function SSAO(props, ref) {
490
490
  return jsx("primitive", { ref: ref, object: effect, dispose: null });
491
491
  });
492
492
 
493
- const N8AO = forwardRef(({ quality, aoRadius, aoSamples, denoiseSamples, denoiseRadius, distanceFalloff, intensity }, ref) => {
493
+ const N8AO = forwardRef(({ quality, aoRadius = 5, aoSamples = 16, denoiseSamples = 4, denoiseRadius = 12, distanceFalloff = 1, intensity = 1, }, ref) => {
494
494
  const { camera, scene } = useThree();
495
495
  const effect = useMemo(() => new N8AOPostPass(scene, camera), []);
496
496
  useLayoutEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/postprocessing",
3
- "version": "2.12.2",
3
+ "version": "2.12.3",
4
4
  "description": "postprocessing wrapper for React and @react-three/fiber",
5
5
  "keywords": [
6
6
  "postprocessing",