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.

24 lines
365 B

  1. Shader "Hidden/Vector2Node"
  2. {
  3. Properties {
  4. _InputVector ("_InputVector", Vector) = (0,0,0,0)
  5. }
  6. SubShader
  7. {
  8. Pass
  9. {
  10. CGPROGRAM
  11. #include "UnityCG.cginc"
  12. #pragma vertex vert_img
  13. #pragma fragment frag
  14. float4 _InputVector;
  15. float4 frag( v2f_img i ) : SV_Target
  16. {
  17. return float4(_InputVector.x,_InputVector.y,0,0);
  18. }
  19. ENDCG
  20. }
  21. }
  22. }