@react-three/postprocessing 2.14.1 → 2.14.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 +4 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -102,8 +102,12 @@ const EffectComposer = React.memo(React.forwardRef(({ children, camera: _camera,
|
|
|
102
102
|
React.useEffect(() => composer === null || composer === void 0 ? void 0 : composer.setSize(size.width, size.height), [composer, size]);
|
|
103
103
|
fiber.useFrame((_, delta) => {
|
|
104
104
|
if (enabled) {
|
|
105
|
+
const currentAutoClear = gl.autoClear;
|
|
105
106
|
gl.autoClear = autoClear;
|
|
107
|
+
if (stencilBuffer && !autoClear)
|
|
108
|
+
gl.clearStencil();
|
|
106
109
|
composer.render(delta);
|
|
110
|
+
gl.autoClear = currentAutoClear;
|
|
107
111
|
}
|
|
108
112
|
}, enabled ? renderPriority : 0);
|
|
109
113
|
const group = React.useRef(null);
|
package/dist/index.js
CHANGED
|
@@ -82,8 +82,12 @@ const EffectComposer = React.memo(forwardRef(({ children, camera: _camera, scene
|
|
|
82
82
|
useEffect(() => composer === null || composer === void 0 ? void 0 : composer.setSize(size.width, size.height), [composer, size]);
|
|
83
83
|
useFrame((_, delta) => {
|
|
84
84
|
if (enabled) {
|
|
85
|
+
const currentAutoClear = gl.autoClear;
|
|
85
86
|
gl.autoClear = autoClear;
|
|
87
|
+
if (stencilBuffer && !autoClear)
|
|
88
|
+
gl.clearStencil();
|
|
86
89
|
composer.render(delta);
|
|
90
|
+
gl.autoClear = currentAutoClear;
|
|
87
91
|
}
|
|
88
92
|
}, enabled ? renderPriority : 0);
|
|
89
93
|
const group = useRef(null);
|