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. --- math.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.cginc') diff --git a/math.cginc b/math.cginc index f188a91..c37ce07 100644 --- a/math.cginc +++ b/math.cginc @@ -65,7 +65,7 @@ float3 cart_to_hex(float2 cart) { float q = dot(cart, float2(0.5f, SQRT_3_OVER_2)); float r = dot(cart, float2(0.5f, -SQRT_3_OVER_2)); - return float3(p, q, r) * TWO_OVER_THREE; + return float3(p, q, r) * 0.5f; } float2 hex_to_cart(float3 cart) { -- cgit v1.2.3