Skip to content

Instantly share code, notes, and snippets.

@KumoKairo
Last active August 11, 2017 14:54
Show Gist options
  • Save KumoKairo/6f5b4acd01c8966093bb335c517a154a to your computer and use it in GitHub Desktop.
Save KumoKairo/6f5b4acd01c8966093bb335c517a154a to your computer and use it in GitHub Desktop.
struct appdata
{
float4 position : POSITION;
float3 texcoord : TEXCOORD0;
};
struct v2f
{
float4 position : SV_POSITION;
float3 texcoord : TEXCOORD0;
};
v2f vert(appdata v)
{
v2f o;
o.position = UnityObjectToClipPos(v.position);
o.texcoord = v.texcoord;
return o;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment