Skip to content

albancreton/MozaicPass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MozaicPass

Mozaic (pixalate) Shader and Pass for Three.js

How to ?

Include the Shader and the Pass

<script type="text/javascript" src="lib/MozaicShader.js"></script>
<script type="text/javascript" src="lib/MozaicPass.js"></script>

Add Mozaic Pass to your effect composer stack

var composer = new THREE.EffectComposer( renderer );

var mozaic = new THREE.MozaicPass();
mozaic.cellsize = 20;
mozaic.renderToScreen = true;

composer.addPass( mozaic );

demo: http://albancreton.github.io/MozaicPass/

About

Mozaic (pixelate) Shader and Pass for Three.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published