summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-04-10 15:32:56 -0700
committeryum <yum.food.vr@gmail.com>2026-04-10 15:32:56 -0700
commit89debfe865f83e5315f51122e3ec5579d5b9d53d (patch)
treea581c6186ad5702d28cba60630d988f538f187dd
parente7b8483a86a60e69441516966ef13ed3e6884696 (diff)
bugfix: c31 would break build when disabled
-rw-r--r--custom31.cginc2
1 files changed, 2 insertions, 0 deletions
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)