diff options
| -rw-r--r-- | custom31.cginc | 2 |
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) |
