Skip to content

nievsky/UnityShaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityShaders

Note

  • In this repository I store shaders I wrote in Unity or shaders I found in the internet

  • These shaders stored in .shadergraph format, so you can easily import them to Unity

  • Each shader has parameters that can be modified to suit a specific case

  • In Unity you need to apply .shadergraph to material and this material apply to object to see shader

  • Some shaders depend on light in scene (Lit) and some shaders not (Unlit). There are shaders that can be applied to your render pass in render pipeline as a render feature (Fullscreen shaders)

  • Some shaders require subgraphs, you can find them in /Bubgraphs directory


Lit Shaders

Alpha Threshold

Movie018

Can be useful, if you have sprite with background that should be transparent


Dissolve Shader

Movie012

The most recognizable shader. For this shader I created 2 scripts:

  • DissolveAnimation.cs - When you apply DissolveAnimation.cs to an object it allows to control animations for dissolve: appear, disappear, ping-pong. You can also adjust speed and padding in case your object doesn't appear/disppear fully
  • DissolveEditor.cs - add buttons to Editor. Just import it in your project

Cel Shader

Movie009


Dithering Shader

Movie013

When you decrease transparency, appears dithering


Silhouette Shader

Movie016

It can be useful as a mask that only shows objects when you look through it


Halftone Shader

Movie024

Shader that simulates a dithering effect for shadows


Wave Vertex Shader (with foam)

Movie020

Vertex shader. You can apply a texture to make foams


Dot Matrix Shader

Movie017


Intersection Occlusion (Ambient Occlusion)

Movie026

Creates shadow at the boundaries of intersection


Glowing Intersection

Movie032

Creates glowing at the boundaries of intersection, but depends on object's UV


Unlit Shaders

Fresnel Shader

Movie014

Cool and versatile effect that can be used everywhere


Balatro background Shader

Movie022

Inspired by balatro background. To make shader more explicit you should apply a texture in editor (e.g. gradient)


Portal Shader

Movie023

Apply a texture in editor


Fullscreen Shaders

Warning

These shaders can only be applied into your render pipeline (URP, HDRP)

Find your renderer (by default it's PC_Renderer)

Add renderer feature -> Full Screen Pass Renderer Feature -> Add a metarial into Pass Material

Grey scale Shader

Movie033

Well, it makes the image grey...


Outline Shader

Movie034

Outlines objects


Outline + Halftone (mix)

Movie036

Halftone applied to objects, outline applied to render pass


Dithering

Movie038


Dithering 1-bit

Movie037


TOBEFIXED shaders

1. Outline per object shader

About

Shader Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages