Skip to content

Commit

Permalink
update doc and code
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmontastier committed Jan 6, 2025
1 parent 667c40d commit 26381a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions docs/.vitepress/theme/components/pmdrs/TiltShiftDemo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ContactShadows, Environment, OrbitControls } from '@tresjs/cientos'
import { Environment, OrbitControls } from '@tresjs/cientos'
import { TresCanvas } from '@tresjs/core'
import { TresLeches, useControls } from '@tresjs/leches'
import { EffectComposerPmndrs, TiltShiftPmndrs } from '@tresjs/post-processing'
Expand Down Expand Up @@ -74,12 +74,6 @@ const { blendFunction, offset, rotation, focusArea, feather } = useControls({
</EffectComposerPmndrs>
</Suspense>

<ContactShadows
:opacity=".75"
:position-y="-3.5"
:scale="20"
:blur=".1"
:far="15"
/>
<TresGridHelper :position="[0, -3.5, 0]" :args="[30, 15]" />
</TresCanvas>
</template>
10 changes: 2 additions & 8 deletions docs/guide/pmndrs/tilt-shift.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `<TiltShiftPmndrs>` component is straightforward to use and provides customi

```vue{3,21-24,49-53}
<script setup lang="ts">
import { ContactShadows, Environment, OrbitControls } from '@tresjs/cientos'
import { Environment, OrbitControls } from '@tresjs/cientos'
import { EffectComposerPmndrs, TiltShiftPmndrs } from '@tresjs/post-processing'
import { NoToneMapping } from 'three'
Expand Down Expand Up @@ -65,13 +65,7 @@ const effectProps = {
</EffectComposerPmndrs>
</Suspense>
<ContactShadows
:opacity=".75"
:position-y="-3.5"
:scale="20"
:blur=".1"
:far="15"
/>
<TresGridHelper :position="[0, -3.5, 0]" :args="[30, 15]" />
</TresCanvas>
</template>
```
Expand Down

0 comments on commit 26381a4

Please sign in to comment.