diff options
| author | yum <yum.food.vr@gmail.com> | 2023-12-14 16:31:10 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-12-14 16:31:10 -0800 |
| commit | a5e0aaf10230c4690c6bf702b335edb700d5a8c5 (patch) | |
| tree | d6d085945ddc548020e780bc200bc588c7803127 /interpolators.cginc | |
Initial commit
Basic functionality is complete.
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__ + |
