From c9324a804c15cf3db403833e67935762eb45cb80 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 4 Nov 2025 17:26:46 -0800 Subject: add ray march instancing (copies) with row offsets instancing uses real evaluated copies of the mesh instead of domain repetition. useful for hiding artifacts as an alternative to quilez's corrective term, which generally converges more slowly. --- features.cginc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'features.cginc') diff --git a/features.cginc b/features.cginc index 3a1a773..39fc34a 100644 --- a/features.cginc +++ b/features.cginc @@ -88,6 +88,14 @@ #pragma shader_feature_local _RAY_MARCHING_BAKED_ORIGINS //endex +//ifex _Ray_Marching_Cart_Instancing_Enabled==0 +#pragma shader_feature_local _RAY_MARCHING_CART_INSTANCING +//endex + +//ifex _Ray_Marching_Cart_Instancing_Offsets_Enabled==0 +#pragma shader_feature_local _RAY_MARCHING_CART_INSTANCING_OFFSETS +//endex + //ifex _Ray_Marching_Cart_Grid_Enabled==0 #pragma shader_feature_local _RAY_MARCHING_CART_GRID //endex -- cgit v1.2.3