Pixel Perfect Retro Shaders
PixelPerfect Retro Shaders
Ever tried to make a pixelated retro style texture, avatar, or sprite in VRC? I bet someone told you to use "Point Filtering". I bet the pixels were weird and jaggy and ugly when you used that. I bet you were sad.
Don't be sad! Don't settle for jaggy ugly pixel art in your VRChat worlds or other Unity projects! This package includes pre-made shaders, materials, and helper functions for making beautiful retro-inspired art in VRC and other Unity Built-In-Render-Pipeline projects. I've used these shaders extensively in my VRChat worlds Maru's Arcade & Crystal Defenders.
Also included in most of the shaders here is a "Retro Wobble" (aka simulated precision loss) shader keyword for getting that PS1 wobbly aesthetic. When the keyword is not toggled on the shader is compiled without the wobble code.
Comparison
VS
About the Pixel Antialiasing Technique
The shaders in this package use a fancy antialiasing technique resulting in smooth pixel edges on low resolution textures and sprites. I did not invent the technique used here! I got it from CNLohr's shadertrixx repo (Though it was originally invented by Lyuma). If you are already a shader pro, by all means go check that out instead. This package is meant for those that don't know much about shaders themselves but want those sweet sweet smooth pixels.
About the Retro Wobble Technique
The shaders in this package simulate precision loss via rounding to get something akin to the PS1's janky geometry wobble. This can be adjusted via "Wobble Factor" and turned on or off via shader keyword. It's also included as an amplify node.
Includes
- 7 pixel-antialiased shaders for everything from UI to particles to standard PBR surfaces, complete with mobile versions
- Optional "Retro Wobble" feature toggle simulating PS1 style precision loss
- An example scene and example materials to mess with and use how you see fit
- A simple custom shader GUI that supports the "Retro Wobble" shader keyword
- Amplify nodes you can use to make custom shaders
- RetroHelpers shader utilities you can use to make custom shaders with code
- Some sample sprites from my VRC worlds that you can use if you want I guess
Amplify Shader Editor
This package includes nodes for Amplify Shader Editor, if that's your thing. Check out the sample shader for an example.
Licensing
The original technique was MIT licensed, So I've MIT licensed this to pay it forward. TLDR is more-or-less use it however you want as long as you include the licenses that are already in the package. See the licenses folder for more details.