summaryrefslogtreecommitdiffstats
path: root/burley.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'burley.cginc')
-rw-r--r--burley.cginc4
1 files changed, 3 insertions, 1 deletions
diff --git a/burley.cginc b/burley.cginc
index 1ca870f..539b317 100644
--- a/burley.cginc
+++ b/burley.cginc
@@ -4,7 +4,7 @@
#include "data.cginc"
#include "math.cginc"
-#if defined(_BURLEY_TILING)
+#if defined(_BURLEY_TILING) || defined(TRIPLANAR_BURLEY)
float2 burley_tri_to_cart(float2 tri_coord) {
return float2(
tri_coord.x + tri_coord.y * 0.5f,
@@ -111,7 +111,9 @@ float4 burley_sample_patch(texture2D tex, BurleyPatchTransform patch) {
return tex.SampleGrad(
aniso4_trilinear_repeat_s, patch.uv, patch.dx, patch.dy);
}
+#endif // _BURLEY_TILING || TRIPLANAR_BURLEY
+#if defined(_BURLEY_TILING)
struct BurleyTilingContext {
BurleyPatchTransform patch_0;
BurleyPatchTransform patch_1;