This file contains hidden or 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 "CookbookShaders/Ch08/Blend Mode/OverlayImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_BlendTex ("Blend Texture", 2D) = "white" {} | |
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1 | |
} | |
SubShader |
This file contains hidden or 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 "CookbookShaders/Ch08/Blend Mode/ScreenImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_BlendTex ("Blend Texture", 2D) = "white" {} | |
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1 | |
} | |
SubShader |
This file contains hidden or 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 "CookbookShaders/Ch08/Blend Mode/AddImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_BlendTex ("Blend Texture", 2D) = "white" {} | |
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1 | |
} | |
SubShader |
This file contains hidden or 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 "CookbookShaders/Ch08/Blend Mode/MultiplyImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_BlendTex ("Blend Texture", 2D) = "white" {} | |
_BlendOpacity ("Blend Opacity", Range(0, 1)) = 1 | |
} | |
SubShader |
This file contains hidden or 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 System.Collections; | |
using UnityEngine; | |
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode. | |
public class Ch8BlendModeImageEffect : MonoBehaviour | |
{ | |
#region Variables | |
public Shader curShader; | |
public Texture2D blendTexture; |
This file contains hidden or 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 "CookbookShaders/Ch08/BSCImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_BrightnessAmount ("Brightness Amount", Range(0.0, 1.0)) = 1.0 | |
_SaturationAmount ("Saturation Amount", Range(0.0, 1.0)) = 1.0 | |
_ContrastAmount ("Contrast Amount", Range(0.0, 1.0)) = 1.0 | |
} |
This file contains hidden or 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 System.Collections; | |
using UnityEngine; | |
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode. | |
public class Ch8BSCImageEffect : MonoBehaviour | |
{ | |
#region Variables | |
public Shader curShader; | |
[Range(0.0f, 2.0f)] |
This file contains hidden or 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 System.Collections; | |
using UnityEngine; | |
[ExecuteInEditMode] // makes the Screen Effect editable within the Editor without entering Play mode. | |
public class Ch8SceneDepthImageEffect : MonoBehaviour | |
{ | |
#region Variables | |
public Shader curShader; | |
[Range(0.0f, 5.0f)] // makes this variable show up as a slider in the Inspector. |
This file contains hidden or 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 "CookbookShaders/Ch08/SceneDepthImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_DepthPower ("Depth Power", Range(1, 5)) = 1 | |
} | |
SubShader | |
{ |
This file contains hidden or 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 "CookbookShaders/Ch08/GrayscaleImageEffect.shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_LuminosityAmount ("GrayScale Amount", Range(0.0, 1.0)) = 1.0 | |
} | |
SubShader | |
{ |
NewerOlder