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.

29 lines
418 B

  1. Shader "Hidden/SimpleTimeNode"
  2. {
  3. Properties
  4. {
  5. _A ("_A", 2D) = "white" {}
  6. _Count ("_Count", Int) = 0
  7. }
  8. SubShader
  9. {
  10. Pass
  11. {
  12. CGPROGRAM
  13. #pragma vertex vert_img
  14. #pragma fragment frag
  15. #include "UnityCG.cginc"
  16. sampler2D _A;
  17. float _EditorTime;
  18. float4 frag( v2f_img i ) : SV_Target
  19. {
  20. float4 a = tex2D( _A, i.uv );
  21. float4 t = _EditorTime;
  22. return t * a.x;
  23. }
  24. ENDCG
  25. }
  26. }
  27. }