diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-04 17:26:46 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-04 17:26:46 -0800 |
| commit | c9324a804c15cf3db403833e67935762eb45cb80 (patch) | |
| tree | eed670156a998d79958f10caf2833cc8ddb0a5c9 /math.cginc | |
| parent | 27c7851bf08aaee87eb348010737c34b5698adaa (diff) | |
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.
Diffstat (limited to 'math.cginc')
| -rw-r--r-- | math.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
