"Scale2x" sample code and project

I once needed pixel scaling algorithm for one test scene, so I ported Scale2x to Unity C# that uses Texture operations for the job. Since the Scale2x author has following disclaimer Instead, you are free to use the algorithm, but please call the effect "Scale2x", I am calling this "Scale2x".

Since Color components are floats, the comparison of colors is done somewhat cumbersomely, but it works. And if you want to use this, make sure the Read/Write enabled is checked from texture import settings (also set the Filter mode: Point).

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.