@react-three/postprocessing 2.14.7 → 2.14.8
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/effects/N8AO.d.ts +1 -0
- package/dist/index.cjs +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1689,7 +1689,8 @@ const N8AO = forwardRef(
|
|
|
1689
1689
|
denoiseRadius = 12,
|
|
1690
1690
|
distanceFalloff = 1,
|
|
1691
1691
|
intensity = 1,
|
|
1692
|
-
color
|
|
1692
|
+
color,
|
|
1693
|
+
renderMode = 0
|
|
1693
1694
|
}, ref) => {
|
|
1694
1695
|
const { camera, scene } = useThree();
|
|
1695
1696
|
const effect = useMemo(() => new $87431ee93b037844$export$2489f9981ab0fa82(scene, camera), []);
|
|
@@ -1702,9 +1703,20 @@ const N8AO = forwardRef(
|
|
|
1702
1703
|
aoSamples,
|
|
1703
1704
|
denoiseSamples,
|
|
1704
1705
|
denoiseRadius,
|
|
1705
|
-
screenSpaceRadius
|
|
1706
|
+
screenSpaceRadius,
|
|
1707
|
+
renderMode
|
|
1706
1708
|
});
|
|
1707
|
-
}, [
|
|
1709
|
+
}, [
|
|
1710
|
+
screenSpaceRadius,
|
|
1711
|
+
color,
|
|
1712
|
+
aoRadius,
|
|
1713
|
+
distanceFalloff,
|
|
1714
|
+
intensity,
|
|
1715
|
+
aoSamples,
|
|
1716
|
+
denoiseSamples,
|
|
1717
|
+
denoiseRadius,
|
|
1718
|
+
renderMode
|
|
1719
|
+
]);
|
|
1708
1720
|
useLayoutEffect(() => {
|
|
1709
1721
|
if (quality)
|
|
1710
1722
|
effect.setQualityMode(quality.charAt(0).toUpperCase() + quality.slice(1));
|