An Sketchy Effect effect for THREE.js and post-processing (using vanilla THREE.js).
Take a peek at last scene
This effect is based on the work of mayacoda/pencil-lines
To run this project, you'll need the following:
- three.js
- postprocessing
npm install
//run example
npx vite
npx vite build
npx vite preview
Grab sketchyEffect.js and set it up according to the example in index.html.
import { EffectComposer, RenderPass, EffectPass } from "postprocessing";
import { SketchyEffectPass } from '../sketchyEffect'
const renderPass = new RenderPass(this.scene, this.camera)
const sketchyEffectPass = new SketchyEffectPass(this)
const composer = new EffectComposer(this.renderer)
composer.addPass(renderPass)
composer.addPass(sketchyEffectPass)This project is licensed under the MIT License.