UNPKG

glodrei

Version:

useful add-ons for react-three-fiber

19 lines (13 loc) 763 B
--- title: Effects sourcecode: src/core/Effects.tsx --- Abstraction around threes own [EffectComposer](https://threejs.org/docs/#examples/en/postprocessing/EffectComposer). By default it will prepend a render-pass and a gammacorrection-pass. Children are cloned, `attach` is given to them automatically. You can only use passes or effects in there. By default it creates a render target with HalfFloatType, RGBAFormat. You can change all of this to your liking, inspect the types. ```jsx import { SSAOPass } from "three-stdlib" extend({ SSAOPass }) <Effects multisamping={8} renderIndex={1} disableGamma={false} disableRenderPass={false} disableRender={false}> <sSAOPass args={[scene, camera, 100, 100]} kernelRadius={1.2} kernelSize={0} /> </Effects> ```