summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc2
1 files changed, 1 insertions, 1 deletions
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) {