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

Shader "Hidden/Vector2Node"
{
Properties {
_InputVector ("_InputVector", Vector) = (0,0,0,0)
}
SubShader
{
Pass
{
CGPROGRAM
#include "UnityCG.cginc"
#pragma vertex vert_img
#pragma fragment frag
float4 _InputVector;
float4 frag( v2f_img i ) : SV_Target
{
return float4(_InputVector.x,_InputVector.y,0,0);
}
ENDCG
}
}
}