From a5e0aaf10230c4690c6bf702b335edb700d5a8c5 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 14 Dec 2023 16:31:10 -0800 Subject: Initial commit Basic functionality is complete. --- interpolators.cginc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 interpolators.cginc (limited to 'interpolators.cginc') 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__ + -- cgit v1.2.3