diff options
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/interpolators.cginc b/interpolators.cginc new file mode 100644 index 0000000..94f2613 --- /dev/null +++ b/interpolators.cginc @@ -0,0 +1,29 @@ +#ifndef __INTERPOLATORS_INC +#define __INTERPOLATORS_INC + +#include "AutoLight.cginc" + +struct appdata { + float4 vertex : POSITION; + float2 uv0 : TEXCOORD0; + float4 color : COLOR; // vertex color + + UNITY_VERTEX_INPUT_INSTANCE_ID +}; + +struct v2f { +#if defined(_TESSELLATION) + float4 tpos : INTERNALTESSPOS; +#endif + linear noperspective centroid float4 pos : SV_POSITION; + float2 uv0 : TEXCOORD0; + float3 objPos : TEXCOORD1; + float3 worldPos : TEXCOORD2; + float4 eyeVec : TEXCOORD3; // eyeVec.xyz | fogCoord + UNITY_LIGHTING_COORDS(4,5) + + UNITY_VERTEX_INPUT_INSTANCE_ID + UNITY_VERTEX_OUTPUT_STEREO +}; + +#endif // __INTERPOLATORS_INC |
