Init
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
Shader "Hidden/CosTime"
|
||||
{
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert_img
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
#include "Preview.cginc"
|
||||
|
||||
float _EditorTime;
|
||||
|
||||
float4 frag( v2f_img i ) : SV_Target
|
||||
{
|
||||
float4 t = _EditorTime;
|
||||
t.x = _EditorTime / 8;
|
||||
t.y = _EditorTime / 4;
|
||||
t.z = _EditorTime / 2;
|
||||
return cos(t);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user