summaryrefslogtreecommitdiff
path: root/Assets/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_SimpleTimeNode.shader
blob: 428eea6c401e96822635a2aca005a5d10a3e2465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Shader "Hidden/SimpleTimeNode"
{
	Properties
	{
		_A ("_A", 2D) = "white" {}
		_Count ("_Count", Int) = 0
	}
	SubShader
	{
		Pass
		{
			CGPROGRAM
			#pragma vertex vert_img
			#pragma fragment frag
			#include "UnityCG.cginc"

			sampler2D _A;
			float _EditorTime;

			float4 frag( v2f_img i ) : SV_Target
			{
				float4 a = tex2D( _A, i.uv );
				float4 t = _EditorTime;
				return t * a.x;
			}
			ENDCG
		}
	}
}