You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
388 B

Shader "Hidden/DeltaTime"
{
SubShader
{
Pass
{
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
float _EditorDeltaTime;
float4 frag( v2f_img i ) : SV_Target
{
float4 t = _EditorDeltaTime;
t.y = 1 / _EditorDeltaTime;
t.z = _EditorDeltaTime;
t.w = 1 / _EditorDeltaTime;
return cos(t);
}
ENDCG
}
}
}