You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `LensDistortion` effect is part of the [`postprocessing`](https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/LensDistortionEffect.js~LensDistortionEffect.html) package. It allows you to apply a lens distortion effect to your scene, providing flexibility for creating realistic camera effects.
8
+
9
+
## Usage
10
+
11
+
The `<LensDistortionPmndrs>` component is straightforward to use and provides customizable options to fine-tune the distortion effect of your visuals.
12
+
13
+
```vue{3,12-17,52-56}
14
+
<script setup lang="ts">
15
+
import { Vector2 } from 'three'
16
+
import { EffectComposerPmndrs, LensDistortionPmndrs } from '@tresjs/post-processing'
17
+
import { Environment, OrbitControls } from '@tresjs/cientos'
18
+
import { TresCanvas, useTexture } from '@tresjs/core'
|**distortion**| The distortion effect strength. <br> Accepts `Vector2` or `[number, number]`. |`[0.0, 0.0]`|
79
+
|**principalPoint**| The center point. <br> Accepts `Vector2` or `[number, number]`. |`[0.0, 0.0]`|
80
+
|**focalLength**| The focal length. <br> Accepts `Vector2` or `[number, number]`. |`[1.0, 1.0]`|
81
+
|**skew**| The skew value. |`0`|
82
+
83
+
## Further Reading
84
+
85
+
For more details, see the [LensDistortion documentation](https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/LensDistortionEffect.js~LensDistortionEffect.html).
0 commit comments