Skip to content

An sketchy pencil effect for THREE.js and post-processing (using vanilla THREE.js)

License

Notifications You must be signed in to change notification settings

isladjan/sketchyEffect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sketchy Effect

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

Requirements

To run this project, you'll need the following:


Installation

npm install

//run example
npx vite
npx vite build
npx vite preview

How to use

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)

License

This project is licensed under the MIT License.

About

An sketchy pencil effect for THREE.js and post-processing (using vanilla THREE.js)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors