threepipe
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

FilmicGrainPlugin.md 1000B

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