Skip to content

Commit

Permalink
update code, props
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmontastier committed Jan 7, 2025
1 parent 26381a4 commit 476c4ed
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/core/pmndrs/TiltShiftPmndrs.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { BlendFunction } from 'postprocessing'
import { KernelSize, Resolution, TiltShiftEffect } from 'postprocessing'
import type { BlendFunction, KernelSize } from 'postprocessing'
import { TiltShiftEffect } from 'postprocessing'
import { makePropWatchers } from '../../util/prop'
import { useEffectPmndrs } from './composables/useEffectPmndrs'
Expand Down Expand Up @@ -56,19 +56,7 @@ export interface TiltShiftPmndrsProps {
resolutionY?: number
}
const props = withDefaults(
defineProps<TiltShiftPmndrsProps>(),
{
offset: 0.0,
rotation: 0.0,
focusArea: 0.4,
feather: 0.3,
kernelSize: KernelSize.MEDIUM,
resolutionScale: 0.5,
resolutionX: Resolution.AUTO_SIZE,
resolutionY: Resolution.AUTO_SIZE,
},
)
const props = defineProps<TiltShiftPmndrsProps>()
const { pass, effect } = useEffectPmndrs(() => new TiltShiftEffect(props), props)
Expand Down

0 comments on commit 476c4ed

Please sign in to comment.