@react-three/postprocessing 2.5.3 → 2.5.4
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/Bloom.d.ts +3 -0
- package/dist/index.cjs +7 -3
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/effects/Bloom.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BloomEffect, BlendFunction } from 'postprocessing';
|
|
3
3
|
export declare const Bloom: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
mipmapBlur?: boolean;
|
|
5
|
+
radius?: number;
|
|
6
|
+
levels?: number;
|
|
4
7
|
blendFunction?: BlendFunction;
|
|
5
8
|
luminanceThreshold?: number;
|
|
6
9
|
luminanceSmoothing?: number;
|
package/dist/index.cjs
CHANGED
|
@@ -482,7 +482,7 @@ var Pixelation = /*#__PURE__*/React.forwardRef(function Pixelation(_ref, ref) {
|
|
|
482
482
|
|
|
483
483
|
var Scanline = wrapEffect(postprocessing.ScanlineEffect, postprocessing.BlendFunction.OVERLAY);
|
|
484
484
|
|
|
485
|
-
var _excluded$3 = ["selection", "selectionLayer", "lights", "luminanceThreshold", "luminanceSmoothing", "intensity", "width", "height", "kernelSize", "mipmapBlur"];
|
|
485
|
+
var _excluded$3 = ["selection", "selectionLayer", "lights", "luminanceThreshold", "luminanceSmoothing", "intensity", "width", "height", "kernelSize", "mipmapBlur", "radius", "levels"];
|
|
486
486
|
|
|
487
487
|
var addLight = function addLight(light, effect) {
|
|
488
488
|
return light.layers.enable(effect.selection.layer);
|
|
@@ -506,6 +506,8 @@ var SelectiveBloom = /*#__PURE__*/React.forwardRef(function SelectiveBloom(_ref,
|
|
|
506
506
|
height = _ref.height,
|
|
507
507
|
kernelSize = _ref.kernelSize,
|
|
508
508
|
mipmapBlur = _ref.mipmapBlur,
|
|
509
|
+
radius = _ref.radius,
|
|
510
|
+
levels = _ref.levels,
|
|
509
511
|
props = _objectWithoutPropertiesLoose__default["default"](_ref, _excluded$3);
|
|
510
512
|
|
|
511
513
|
if (lights.length === 0) {
|
|
@@ -529,9 +531,11 @@ var SelectiveBloom = /*#__PURE__*/React.forwardRef(function SelectiveBloom(_ref,
|
|
|
529
531
|
width: width,
|
|
530
532
|
height: height,
|
|
531
533
|
kernelSize: kernelSize,
|
|
532
|
-
mipmapBlur: mipmapBlur
|
|
534
|
+
mipmapBlur: mipmapBlur,
|
|
535
|
+
radius: radius,
|
|
536
|
+
levels: levels
|
|
533
537
|
}, props));
|
|
534
|
-
}, [camera, height, intensity, kernelSize, luminanceSmoothing, luminanceThreshold, scene, width, height, mipmapBlur]);
|
|
538
|
+
}, [camera, height, intensity, kernelSize, luminanceSmoothing, luminanceThreshold, scene, width, height, mipmapBlur, radius, levels]);
|
|
535
539
|
var api = React.useContext(selectionContext);
|
|
536
540
|
React.useEffect(function () {
|
|
537
541
|
// Do not allow array selection if declarative selection is active
|
package/dist/index.js
CHANGED
|
@@ -419,6 +419,8 @@ const SelectiveBloom = /*#__PURE__*/forwardRef(function SelectiveBloom(_ref, for
|
|
|
419
419
|
height,
|
|
420
420
|
kernelSize,
|
|
421
421
|
mipmapBlur,
|
|
422
|
+
radius,
|
|
423
|
+
levels,
|
|
422
424
|
...props
|
|
423
425
|
} = _ref;
|
|
424
426
|
|
|
@@ -440,8 +442,10 @@ const SelectiveBloom = /*#__PURE__*/forwardRef(function SelectiveBloom(_ref, for
|
|
|
440
442
|
height,
|
|
441
443
|
kernelSize,
|
|
442
444
|
mipmapBlur,
|
|
445
|
+
radius,
|
|
446
|
+
levels,
|
|
443
447
|
...props
|
|
444
|
-
}), [camera, height, intensity, kernelSize, luminanceSmoothing, luminanceThreshold, scene, width, height, mipmapBlur]);
|
|
448
|
+
}), [camera, height, intensity, kernelSize, luminanceSmoothing, luminanceThreshold, scene, width, height, mipmapBlur, radius, levels]);
|
|
445
449
|
const api = useContext(selectionContext);
|
|
446
450
|
useEffect(() => {
|
|
447
451
|
// Do not allow array selection if declarative selection is active
|