This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
//[ExecuteInEditMode] | |
public class PostEffect : MonoBehaviour { | |
[SerializeField] | |
private Material _material; | |
private void OnRenderImage(RenderTexture source, RenderTexture destination) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/SobelEdge" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Width("Width",float)=1920 | |
_Height("Height",float)=1080 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/TransitionGrayScaleToColor" | |
{ | |
Properties | |
{ | |
_MainTex ("MainTexture", 2D) = "white" {} | |
_Pattern("Pattern",2D)="white"{} | |
_Threshold("Threshold",Range(0.0,1.0))=0.5 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/Stencil" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/TexBlend" | |
{ | |
Properties | |
{ | |
_MainTex ("MainTex", 2D) = "white" {} | |
_SubTex("SubTex", 2D) = "white" {} | |
_Blend("Blend", Range(0.0,1.0)) = 0.0 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/GrayScale" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Geometry/PolygonToBoxel" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_MainColor("Color",Color)=(1,1,1,1) | |
_BoxScale("BoxScale",Range(0.0, 0.1)) = 0.01 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Geometry/PolygonScaling" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_MainColor("Color",Color)=(1,1,1,1) | |
_ScaleFactor("Scale Factor", Range(0.0, 1.0)) = 1.0 | |
//_ScaleFactor("Scale Factor", Range(0.0, 2.0)) = 1.0 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Geometry/FaceExtrude" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Factor ("Factor", Range(0., 2.)) = 0.2 | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/Reversible" | |
{ | |
Properties | |
{ | |
_MainTexA ("TextureA", 2D) = "white" {} | |
_MainTexB ("TextureB", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |