I added a new palette-swap-shader
project to the Demo projects
archive that can be downloaded from the Pixelbox page.
This project demonstrate how to use a shader filter to achieve a palette swap effect.
Note that it needs version 2.1.1
of the Pixelbox library. While creating this demo, I noticed few improvements that where required in the ShaderFilter
component. This changes will be included later, in the next release of Pixelbox. I the meantime, you need to update the library by yourself using npm install
.
Please let me know if you’re not familiar with NPM or if you have trouble installing the 2.1.1
version.