threepipe
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ChromaticAberrationPlugin.md 1011B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. prev:
  3. text: 'VignettePlugin'
  4. link: './VignettePlugin'
  5. next:
  6. text: 'FilmicGrainPlugin'
  7. link: './FilmicGrainPlugin'
  8. ---
  9. # ChromaticAberrationPlugin
  10. [//]: # (todo: image)
  11. [Example](https://threepipe.org/examples/#chromatic-aberration-plugin/) —
  12. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/postprocessing/ChromaticAberrationPlugin.ts) —
  13. [API Reference](https://threepipe.org/docs/classes/ChromaticAberrationPlugin.html)
  14. ChromaticAberrationPlugin adds a post-processing material extension to the ScreenPass in render manager
  15. that applies a chromatic-aberration effect to the final render. The parameter `intensity` can be changed to customize the effect.
  16. ```typescript
  17. import {ThreeViewer, ChromaticAberrationPlugin} from 'threepipe'
  18. const viewer = new ThreeViewer({...})
  19. const chromaticAberrationPlugin = viewer.addPluginSync(ChromaticAberrationPlugin)
  20. // Change the chromaticAberration color
  21. chromaticAberrationPlugin.intensity = 0.5
  22. ```