From 89debfe865f83e5315f51122e3ec5579d5b9d53d Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 10 Apr 2026 15:32:56 -0700 Subject: bugfix: c31 would break build when disabled --- custom31.cginc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom31.cginc b/custom31.cginc index 67ecb78..fa6b469 100644 --- a/custom31.cginc +++ b/custom31.cginc @@ -6,6 +6,7 @@ #include "math.cginc" #include "quilez.cginc" +#if defined(_CUSTOM31_WORLD) float c31_map(float3 p, float3 p_quant) { float2 hex_dim = float2(_Custom31_World_Hexagons_Tile_Radius, _Custom31_World_Hexagons_Tile_Thickness); @@ -26,6 +27,7 @@ float3 c31_normal(float3 p, float3 p_quant) { c31_map(p + xstep.yxy, p_quant) - d0, c31_map(p + xstep.yyx, p_quant) - d0)); } +#endif // _CUSTOM31_WORLD void apply_custom31_world(v2f i, inout Pbr pbr, inout float3 normal_tangent) { #if defined(_CUSTOM31_WORLD) -- cgit v1.2.3