HeavenStudioPlus/Assets/AmplifyColor/Resources/BlendCache.shader
Braedon Lewis 7cb592fc69 Camera filters (#242)
* 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
2023-01-26 22:42:16 -05:00

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
}