Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jan 18, 2025
1 parent f050f11 commit d4f88f7
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions src/effects/SelectiveBloom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,35 @@ export const SelectiveBloom = /* @__PURE__ */ forwardRef(function SelectiveBloom

const invalidate = useThree((state) => state.invalidate)
const { scene, camera } = useContext(EffectComposerContext)
const effect = useMemo(
() => {
const effect = new SelectiveBloomEffect(scene, camera, {
blendFunction: BlendFunction.ADD,
luminanceThreshold,
luminanceSmoothing,
intensity,
width,
height,
kernelSize,
mipmapBlur,
...props,
});
effect.inverted = inverted;
effect.ignoreBackground = ignoreBackground;
return effect;
},
[scene, camera, luminanceThreshold, luminanceSmoothing, intensity, width, height, kernelSize, mipmapBlur, inverted, ignoreBackground, props]
)
const effect = useMemo(() => {
const effect = new SelectiveBloomEffect(scene, camera, {
blendFunction: BlendFunction.ADD,
luminanceThreshold,
luminanceSmoothing,
intensity,
width,
height,
kernelSize,
mipmapBlur,
...props,
})
effect.inverted = inverted
effect.ignoreBackground = ignoreBackground
return effect
}, [
scene,
camera,
luminanceThreshold,
luminanceSmoothing,
intensity,
width,
height,
kernelSize,
mipmapBlur,
inverted,
ignoreBackground,
props,
])

const api = useContext(selectionContext)

Expand Down

0 comments on commit d4f88f7

Please sign in to comment.