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. --- clones.cginc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clones.cginc') diff --git a/clones.cginc b/clones.cginc index fe51f18..00612f3 100644 --- a/clones.cginc +++ b/clones.cginc @@ -1,11 +1,11 @@ +#include "interpolators.cginc" +#include "globals.cginc" + #ifndef __CLONES_INC #define __CLONES_INC #if defined(_CLONES) -#include "interpolators.cginc" -#include "globals.cginc" - void add_clones(in v2f clone_verts[3], inout TriangleStream tri_out) { if (_Clones_dx < 1E-6) { @@ -34,6 +34,5 @@ void add_clones(in v2f clone_verts[3], inout TriangleStream tri_out) } #endif // _CLONES - #endif // __CLONES_INC -- cgit v1.2.3