summaryrefslogtreecommitdiffstats
path: root/interpolators.cginc
blob: 3f278a7b63a0a5821cdd4e5b4141a0b417aa2ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __INTERPOLATORS_INC__
#define __INTERPOLATORS_INC__

struct appdata
{
  float4 position : POSITION;
  float2 uv : TEXCOORD0;
  float3 normal : NORMAL;
};

struct v2f
{
  float4 position : SV_POSITION;
  float2 uv : TEXCOORD0;
  float3 normal : TEXCOORD1;
  float4 worldPos : TEXCOORD2;

  #if defined(VERTEXLIGHT_ON)
  float3 vertexLightColor : TEXCOORD3;
  #endif
};

#endif  // __INTERPOLATORS_INC__