From b904835dc91db76627ecb08636cd5c339a07a1df Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 18 Sep 2024 23:24:49 -0700 Subject: Add shader inlining tooling This should solve the issue of Unity failing to fully recompile my fucking shader. --- interpolators.cginc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'interpolators.cginc') diff --git a/interpolators.cginc b/interpolators.cginc index df645de..3b9bdcd 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -1,8 +1,8 @@ +#include "AutoLight.cginc" + #ifndef __INTERPOLATORS_INC #define __INTERPOLATORS_INC -#include "AutoLight.cginc" - #if defined(_OUTLINE_INTERPOLATORS) struct appdata @@ -44,7 +44,7 @@ struct v2f UNITY_VERTEX_OUTPUT_STEREO }; -#else +#else // _OUTLINE_INTERPOLATORS struct appdata { @@ -91,7 +91,7 @@ struct v2f UNITY_VERTEX_INPUT_INSTANCE_ID UNITY_VERTEX_OUTPUT_STEREO }; -#endif +#endif // _OUTLINE_INTERPOLATORS #endif // __INTERPOLATORS_INC -- cgit v1.2.3