• This repository has been archived on 08/Apr/2023
  • Stars
    star
    169
  • Rank 223,502 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Image effects for post processing stack created with shader graph for Unity

ImageEffectGraph

Image effects for post processing stack created with shader graph for Unity



ImageEffectGraph running on an AR Foundation app

This repo is attempt to extend ShaderGraph to create postprocessing effects compatible with the Postprocessing Stack, using the either the new Scriptable Render Pipeline (HD/Lightweight) or legacy graphics.

⚠️ Unity is working to officially add "Single-pass post-effects support" to the Shader Graph package (so you don't need this repository anymore). If this feature is important to you, check out the card on our Public Roadmap about Single-pass PostFX support, which would be a good place for you to share your thoughts and vote.
⚠️ 2019.1 is not supported. Unity made its shadergraph api less accessible, making custom master nodes not possible. See #11
⚠️ This repo is extremely experimental, hacky and buggy. For now, it is everything you don't want to use in production.

(In simpler words, things are constantly getting fixes, and there are constant changes to serialization and shader generation, which might not be backward compatible with effects created with a previous version of this tool. This shall change once this repo gets to a stable state)

Getting started

To get started, create a effect graph using the context menu Assets -> Create -> Shader -> Image Effect Graph. Create a material, and assign the shader to it. Finally, add the Render With Material effect to your postprocessing volume, and assign the material to it.

Please note that there are a couple of effect examples (Invert colors, camera transitions, TV flicker, etc...) The demo scenes will cycle through them automatically to showcase the examples.

Please note that the example comes with 3 scenes, for legacy, HD pipeline, and lightweight graphics.
Make sure to select an appropriate pipeline asset when trying a scene.



Using multiple effects

Please refer to this

Acknowledgements

Camera transition effect textures

I think the original idea of the camera transition effect was from here (the shader is pretty different though, and is created with shader graph) Nonetheless, the texture files for the transitions were definitely from the package of that tutorial (Thus belongs to their creator, and are not under MIT license - but under CC 4.0 last time I checked).

TV effect

Taken straight from keijiro/ShaderGraphExamples

Overlay effect texture

Texture from keijiro/SketchyFx (OTF_Crumpled_Paper_08.jpg) by Brent Leimenstoll

Regular Hexagon Tiling effect

Translated from ShaderToy, original shader by pwd

More Repositories

1

UnityYoutubePlayer

Play YouTube videos in Unity
C#
331
star
2

playlet

The unofficial, privacy driven, YouTube client for Roku
BrighterScript
290
star
3

EmojiTexture

A Unity plugin to render Emojis ☺ ❤ 🍆 🍑 to a texture
C#
60
star
4

youtube-dl-server

A youtube-dl web server, powered by youtube-dl
TypeScript
39
star
5

AwesomeToolbox

UI toolbox component for Unity
C#
36
star
6

TextureUpdater

Update textures at runtime in Unity
CMake
32
star
7

NativePluginBuilder

Native Plugin Builder - CMake based c/c++ build system for Unity.
C#
26
star
8

yt2alt

A cli tool to import your profile from YouTube to an alternative platform
JavaScript
25
star
9

ChromeAppBuilder

Chrome app builder is an editor extension for Unity to export games as google chrome apps.
C#
22
star
10

Xroutines

A mini framework to better use coroutines in Unity.
C#
21
star
11

FlatBuffersImporter

Google's FlatBuffers (.fbs files) importer for Unity.
C#
18
star
12

Unity-Simple-Fade-Camera

Fadein and out camera to color in using a simple shader
C#
15
star
13

sevakon

Game prototype
C#
13
star
14

UnityIniFiles

A very naive implementation to import .ini configuration files into Unity
C#
10
star
15

GifTexture

GifTexture for Unity - Play an animated gif file on a texture and render on any 3d object.
C#
7
star
16

MobileARTest

AR Foundation test
C#
5
star
17

UnityPackageTemplate

A template for creating Unity packages
C#
3
star
18

SpriteDepthShader

C#
2
star
19

sharetribe-stripe-connect

Open source marketplace platform
Ruby
2
star
20

express-route-autocorrect

Express middleware that autocorrects url routes to the closest match.
JavaScript
2
star
21

Tunisian-Red-Crescent---iOS

Tunisian-Red-Crescent---iOS
Swift
1
star
22

SkiaSharpUnity

SkiaSharp for Unity (UPM package)
1
star
23

Tunisian-Red-Crescent---Tizen

Tunisian-Red-Crescent---Tizen
JavaScript
1
star
24

Droidcon-Run

This is a simple runner game concept to show how easy it is to make a game and publish to Google Play Store. https://play.google.com/store/apps/details?id=com.TGD.DroidconRun
C#
1
star