From e49313202c759f70f6cf1113c8b53471122eb7da Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 29 Jul 2012 20:15:03 +0000 Subject: DistortedVoronoi BiomeGen now uses 4x4 linear interpolation for distortion, 50 % speed increase in the chunk generator with a hardly noticeable change in biome shapes. git-svn-id: http://mc-server.googlecode.com/svn/trunk@708 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cNoise.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/cNoise.h') diff --git a/source/cNoise.h b/source/cNoise.h index 74c2cdd02..6d0a69483 100644 --- a/source/cNoise.h +++ b/source/cNoise.h @@ -74,6 +74,17 @@ private: +/// Linearly interpolates values in the array between the anchor points +extern void IntArrayLinearInterpolate2D( + int * a_Array, + int a_SizeX, int a_SizeY, // Dimensions of the array + int a_AnchorStepX, int a_AnchorStepY // Distances between the anchor points in each direction +); + + + + + #if NOISE_USE_INLINE # include "cNoise.inc" #endif -- cgit v1.2.3