Skip to content

Commit d4f88f7

Browse files
chore: lint
1 parent f050f11 commit d4f88f7

File tree

1 file changed

+29
-19
lines changed

1 file changed

+29
-19
lines changed

src/effects/SelectiveBloom.tsx

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,35 @@ export const SelectiveBloom = /* @__PURE__ */ forwardRef(function SelectiveBloom
4646

4747
const invalidate = useThree((state) => state.invalidate)
4848
const { scene, camera } = useContext(EffectComposerContext)
49-
const effect = useMemo(
50-
() => {
51-
const effect = new SelectiveBloomEffect(scene, camera, {
52-
blendFunction: BlendFunction.ADD,
53-
luminanceThreshold,
54-
luminanceSmoothing,
55-
intensity,
56-
width,
57-
height,
58-
kernelSize,
59-
mipmapBlur,
60-
...props,
61-
});
62-
effect.inverted = inverted;
63-
effect.ignoreBackground = ignoreBackground;
64-
return effect;
65-
},
66-
[scene, camera, luminanceThreshold, luminanceSmoothing, intensity, width, height, kernelSize, mipmapBlur, inverted, ignoreBackground, props]
67-
)
49+
const effect = useMemo(() => {
50+
const effect = new SelectiveBloomEffect(scene, camera, {
51+
blendFunction: BlendFunction.ADD,
52+
luminanceThreshold,
53+
luminanceSmoothing,
54+
intensity,
55+
width,
56+
height,
57+
kernelSize,
58+
mipmapBlur,
59+
...props,
60+
})
61+
effect.inverted = inverted
62+
effect.ignoreBackground = ignoreBackground
63+
return effect
64+
}, [
65+
scene,
66+
camera,
67+
luminanceThreshold,
68+
luminanceSmoothing,
69+
intensity,
70+
width,
71+
height,
72+
kernelSize,
73+
mipmapBlur,
74+
inverted,
75+
ignoreBackground,
76+
props,
77+
])
6878

6979
const api = useContext(selectionContext)
7080

0 commit comments

Comments
 (0)