Vertex-colored & Vertex-lit Shaders (N64/GC/DS/PS1/PS2 style)

$4
Publisher Oddly Shaped Dog
File size 6.19MB
Number of files 92
Latest version 2
Latest release date 2024-04-16 01:52:16
First release date 2023-11-13 01:50:15
Supported Unity versions 2018.4.2 or higher

Overview


This is a collection of shaders I use to replicate the look of Nintendo 64 models and sprites. Unlike the standard built-in shaders, these shaders use per-vertex lighting and support vertex colors, two key aspects of older videogame graphics.


Vertex lighting vs per-pixel lighting comparison




List of shaders included

  • Vertex-lit & Vertex-colored/
    • Vertex-colored/
      • Dual texture: Allows you to transition between two different textures on the same model, with vertex lighting. I used this on the ground tiles in a digging game to transition between the default state and the "dug" state.
      • Vertex-lit Alpha Blend: Overlays a texture and a color (optional) on top of a model's vertex colors, with smooth edges.
      • Vertex-lit Alpha Clip: Overlays a texture and a color (optional) on top of a model's vertex colors, with pixelated edges.
      • Vertex-lit Modulate: Tints a texture with a model's vertex colors in multiply mode.
    • Transparent/
      • Billboard Alpha Blend: Renders a sprite as a billboard (always faces the camera) with alpha blending. Great for Bomberman/Smash style item pickups.
      • Unlit Animated Texture: Displays an animated texture from a sprite sheet frame by frame.
      • Unlit Alpha Blend: Displays a transparent texture with smooth edges.
      • Unlit Alpha Clip: Displays a transparent texture with pixelated edges.