Skip to content

Commit

Permalink
chore: removed default prop values for VignettePmndrs component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinoooo committed Jan 6, 2025
1 parent 6fb13b4 commit 4a7d624
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/core/pmndrs/VignettePmndrs.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { BlendFunction, VignetteEffect, VignetteTechnique } from 'postprocessing'
import type { BlendFunction, VignetteTechnique } from 'postprocessing'
import { VignetteEffect } from 'postprocessing'
import { omit } from '../../util/object'
import { makePropWatchersUsingAllProps } from '../../util/prop'
import { useEffectPmndrs } from './composables/useEffectPmndrs'
Expand All @@ -10,18 +11,13 @@ export interface VignettePmndrsProps {
*/
technique?: VignetteTechnique
blendFunction?: BlendFunction
offset: number
darkness: number
offset?: number
darkness?: number
}
</script>

<script lang="ts" setup>
const props = withDefaults(defineProps<VignettePmndrsProps>(), {
technique: VignetteTechnique.DEFAULT,
blendFunction: BlendFunction.NORMAL,
offset: 0.5,
darkness: 0.5,
})
const props = defineProps<VignettePmndrsProps>()
const { pass, effect } = useEffectPmndrs(() => new VignetteEffect(props), props)
defineExpose({ pass, effect })
Expand Down

0 comments on commit 4a7d624

Please sign in to comment.