flip slider for perlin
authornemo
Tue, 11 Nov 2014 17:00:34 -0500
changeset 10491 c92955fa8b67
parent 10490 b30b8d39d662
child 10492 0cf3b2762606
flip slider for perlin
hedgewars/uLandGenPerlin.pas
--- a/hedgewars/uLandGenPerlin.pas	Tue Nov 11 23:57:46 2014 +0300
+++ b/hedgewars/uLandGenPerlin.pas	Tue Nov 11 17:00:34 2014 -0500
@@ -134,8 +134,8 @@
 begin
     param1:= cTemplateFilter div 3;
     param2:= cTemplateFilter mod 3;
-    rCutoff:= min(max(cFeatureSize*4,15),85);
-    detail:= cFeatureSize*16000+50000;
+    rCutoff:= min(max((26-cFeatureSize)*4,15),85);
+    detail:= (26-cFeatureSize)*16000+50000; // feature size is a slider from 1-25 at present. flip it for perlin
 
     df:= detail * (6 - param2 * 2);