Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Haze <jimhazevoet@gmail.com>2020-05-07 03:44:18 +0300
committermeta-androcto <meta.androcto1@gmail.com>2020-05-07 03:44:18 +0300
commit0af9a7b3c440cb4ad039e791c7c3a1c248793c2e (patch)
tree436aef57cc4c8d5b2fe349b0370e8f9d2f8d5ee7 /ant_landscape/ant_noise.py
parentc2f727ad650f79d1d416633d83a6f7f6c529d6f9 (diff)
Fix T70357: ANT Landscape Line artifacts
Diffstat (limited to 'ant_landscape/ant_noise.py')
-rw-r--r--ant_landscape/ant_noise.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ant_landscape/ant_noise.py b/ant_landscape/ant_noise.py
index c1ddda19..7d6b12e8 100644
--- a/ant_landscape/ant_noise.py
+++ b/ant_landscape/ant_noise.py
@@ -565,15 +565,15 @@ def noise_gen(coords, props):
o_range = 1.0
else:
# Randomise origin
- o_range = 10000.0
+ o_range = 100
seed_set(rseed)
origin = random_unit_vector()
ox = (origin[0] * o_range)
oy = (origin[1] * o_range)
- oz = (origin[2] * o_range)
- origin_x = (ox - (ox / 2)) + x_offset
- origin_y = (oy - (oy / 2)) + y_offset
- origin_z = (oz - (oz / 2)) + z_offset
+ oz = 0
+ origin_x = (ox - (ox * 0.5)) + x_offset
+ origin_y = (oy - (oy * 0.5)) + y_offset
+ origin_z = oz + z_offset
ncoords = (x / (nsize * size_x) + origin_x, y / (nsize * size_y) + origin_y, z / (nsize * size_z) + origin_z)