mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-18 06:20:03 +00:00
bdfb27b225
* Spaceball cleanup and small bug fix * Replace old hit sound in spaceball * Camera filters * added 9 new filters, including 3 types of sepia * oops * remark * normalization of fade out and fade in on filters are by 100 * GenerateFilterTypeEnum comments
36 lines
706 B
Text
36 lines
706 B
Text
// Amplify Color - Advanced Color Grading for Unity
|
|
// Copyright (c) Amplify Creations, Lda <info@amplify.pt>
|
|
|
|
Shader "Hidden/Amplify Color/BlendCache"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex ( "Base (RGB)", Any ) = "" {}
|
|
_RgbTex ( "LUT (RGB)", 2D ) = "" {}
|
|
_LerpRgbTex ( "LerpRGB (RGB)", 2D ) = "" {}
|
|
}
|
|
|
|
Subshader
|
|
{
|
|
ZTest Always Cull Off ZWrite Off Blend Off Fog { Mode off }
|
|
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
|
|
#include "Common.cginc"
|
|
|
|
float4 frag( v2f i ) : SV_Target
|
|
{
|
|
float4 lut1 = tex2D( _RgbTex, i.uv01.xy );
|
|
float4 lut2 = tex2D( _LerpRgbTex, i.uv01.xy );
|
|
return lerp( lut1, lut2, _LerpAmount );
|
|
}
|
|
ENDCG
|
|
}
|
|
}
|
|
|
|
Fallback Off
|
|
}
|