Init
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
Shader "Hidden/ToggleSwitchNode"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_A ("_A", 2D) = "white" {}
|
||||
_B ("_B", 2D) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#include "UnityCG.cginc"
|
||||
#include "Preview.cginc"
|
||||
#pragma vertex vert_img
|
||||
#pragma fragment frag
|
||||
|
||||
sampler2D _A;
|
||||
sampler2D _B;
|
||||
float _Current;
|
||||
|
||||
float4 frag( v2f_img i ) : SV_Target
|
||||
{
|
||||
float4 a = tex2D( _A, i.uv );
|
||||
float4 b = tex2D( _B, i.uv );
|
||||
return lerp(a,b,_Current);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user