summaryrefslogtreecommitdiffstats
path: root/features.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-07-29 14:13:09 -0700
committeryum <yum.food.vr@gmail.com>2025-07-29 14:13:09 -0700
commiteba91b479fb6476fed06b13906d7805f43f879b6 (patch)
tree0075c78dc884d579c884b67cd36372f8af725e39 /features.cginc
parentf1ccfe1d74846df120be984cb09d45ec7e17810c (diff)
Add "gradient xz normals" feature
Take in the gradient of a 2D heightmap (y is up) in one or more channels, sum them up, then convert to normal.
Diffstat (limited to 'features.cginc')
-rw-r--r--features.cginc28
1 files changed, 28 insertions, 0 deletions
diff --git a/features.cginc b/features.cginc
index 8e6ebcd..3e02789 100644
--- a/features.cginc
+++ b/features.cginc
@@ -240,6 +240,34 @@
#pragma shader_feature_local _DECAL7_EMISSIONS_PROXIMITY
//endex
+//ifex _XZ_Gradient_Normals_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS
+//endex
+//ifex _XZ_Gradient_Normals_0_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_0
+//endex
+//ifex _XZ_Gradient_Normals_1_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_1
+//endex
+//ifex _XZ_Gradient_Normals_2_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_2
+//endex
+//ifex _XZ_Gradient_Normals_3_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_3
+//endex
+//ifex _XZ_Gradient_Normals_4_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_4
+//endex
+//ifex _XZ_Gradient_Normals_5_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_5
+//endex
+//ifex _XZ_Gradient_Normals_6_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_6
+//endex
+//ifex _XZ_Gradient_Normals_7_Enabled==0
+#pragma shader_feature_local _XZ_GRADIENT_NORMALS_7
+//endex
+
//ifex _3D_SDF_Enabled==0
#pragma shader_feature_local _3D_SDF
//endex