diff options
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/interpolators.cginc b/interpolators.cginc new file mode 100644 index 0000000..3f278a7 --- /dev/null +++ b/interpolators.cginc @@ -0,0 +1,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__ + |
