Skip to content

Commit

Permalink
removed obsolete computed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinoooo committed Sep 5, 2024
1 parent 8f51ca2 commit 25fb3e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/three/UnrealBloom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ const props = withDefaults(defineProps<UnrealBloomProps>(), {
})
const { sizes } = useTresContext()
const sizeVector = computed(() => new Vector2(sizes.width.value, sizes.height.value))
const { pass } = useEffectThree(() => new UnrealBloomPass(sizeVector.value, props.radius, props.strength, props.threshold))
const { pass } = useEffectThree(() => new UnrealBloomPass(
new Vector2(sizes.width.value, sizes.height.value),
props.radius,
props.strength,
props.threshold,
))
defineExpose({ pass })
watchEffect(() => {
// should this be done for all passes? 🤔
// TODO should this be done for all passes? 🤔
pass.value.setSize(sizes.width.value, sizes.height.value)
})
Expand Down

0 comments on commit 25fb3e8

Please sign in to comment.