126 lines
5.4 KiB
Markdown
126 lines
5.4 KiB
Markdown
# VNTG Shader Pack for Unity 6 URP
|
||
|
||
VNTG is a collection of PSX-inspired and CRT post-processing shaders built for Unity’s Universal Render Pipeline. These shaders were developed across multiple game jams and I hope to continue expanding on these in the future. I hope other developers can find it useful in their own projects.
|
||
|
||
---
|
||
|
||
## Installation
|
||
|
||
Download the proper `.unitypackage` file from [HERE](https://github.com/Colby-O2/VNTG/tree/downloads) and drop it into the `Assets` folder of your project. For rendering features, you can use the included VNTG renderer or add the PSX and CRT rendering features to your own. All settings can be found in the Global Volume.
|
||
|
||
---
|
||
|
||
## Links
|
||
- [Playable Demo](https://colby-o.itch.io/vntg-shaders)
|
||
- [GitHub](https://github.com/Colby-O2?tab=repositories)
|
||
- [Discord](https://discord.gg/8XhAPdCuUU)
|
||
|
||
Email: cokeefe919@gmail.com
|
||
|
||
---
|
||
|
||
## PSX PBR Material
|
||
|
||
**Custom lighting with four lighting models (Unlit, Lit, Texel Lit, and Vertex Lit).**
|
||
**Compatible with Forward, Forward+, Deferred, and Deferred+ rendering.** <br>
|
||
**A global ambient lighting color control is included as well!**
|
||
|
||

|
||
|
||
**Downsample textures to a set resolution**
|
||

|
||
|
||
**Reduced Color Depth**
|
||

|
||
|
||
**Snaps vertices to a customizable resolution**
|
||

|
||
|
||
**Affine Texture Wrapping**
|
||

|
||
|
||
**Vertex Color Support**
|
||

|
||
|
||
**Alpha Clipping Support**
|
||

|
||
|
||
**Terrain Support (Unity 6.3 or higher)**
|
||

|
||
|
||
---
|
||
|
||
## PSX Renderer Feature
|
||
|
||
**Full Screen Pixelation as well as full screen color depth control**
|
||

|
||
|
||
**Dithering with 9 preset patterns**
|
||
with Additive and Multiplicative dither modes. (only multiplicative is shown below)<br>
|
||
Options for pixel perfect dither or a custom scale
|
||

|
||
|
||
**Apply Custom Color Palettes**
|
||
Import color palettes from a variety of file formats, including .ase (Photoshop ASE), .gpl (GIMP Palette), .hex, .txt (Paint.NET), and .pal (JASC/RPAL).<br>
|
||
You can also create a palette from a texture or manually define a custom palette directly within the editor.<br>
|
||
Includes multiple options for changing color distance metrics when matching colors, preserving lighting and more!<br>
|
||
The palette used in the image below can be found [HERE](https://lospec.com/palette-list/western-desert).
|
||

|
||
|
||
**Customizable Stylized Fog**
|
||

|
||
|
||
---
|
||
|
||
## CRT Renderer Feature
|
||
|
||
**Screen Curvature and Vintage effect**
|
||

|
||
|
||
**Simulated CRT rendering with Interlaced rendering, pixel decay, and customizable refresh rate and screen resolution**
|
||

|
||
|
||
**Scanlines, Noise, Chromatic Aberration, Smear, and other VHS artifacts**
|
||

|
||
|
||
**Color & Post-Processing Controls**
|
||

|
||
|
||
**Subpixels with four display modes (OFF, Shadow Mask, Aperture Grille, and Spot Mask)**
|
||

|
||
|
||
---
|
||
|
||
## Compatibility
|
||
|
||
- Unity 6+ (6000.x and newer)
|
||
- URP support
|
||
- Render Graph Supported
|
||
- Desktop & WebGL Fully Supported
|
||
|
||
---
|
||
|
||
## Example Uses
|
||
|
||
Some projects where I've used VNTG or older versions of these shaders:
|
||
|
||
- [The Deadman's Stretch](https://colby-o.itch.io/the-deadmans-stretch)
|
||
- [Wrong Floor](https://colby-o.itch.io/wrong-floor)
|
||
- [The Motel](https://colby-o.itch.io/the-motel)
|
||
- [Code Black](https://colby-o.itch.io/code-black)
|
||
|
||
---
|
||
|
||
## Credits
|
||
|
||
**Collaborators**
|
||
- **SmokeyTheKat**: A huge thank you for providing the custom icons, tree models, tree textures, and essential utility functions for the example scene. [GitHub](https://github.com/SmokeyTheKat) | [Itch](https://smoekythekittycat.itch.io/)
|
||
|
||
**Technical Credits**
|
||
- [**Codrin-Mihail**](https://github.com/Kodrin/URP-PSX/blob/master/URP-PSX/Assets/Shaders/HLSL/CustomLighting.hlsl): Base lighting logic (MIT License & changes documented in [HERE](https://github.com/Colby-O2/VNTG/blob/master/THIRD_PARTY_NOTICE.md)).
|
||
- [**GreatestBear**](https://discussions.unity.com/t/the-quest-for-efficient-per-texel-lighting/700574): Per-texel snapping logic and math.
|
||
---
|
||
|
||
## License
|
||
|
||
VNTG Shader Pack is released under **The Unlicense**. You may freely use, modify, and redistribute these shaders, including in commercial projects. While credit is not required, it’s greatly appreciated! |