// NeL - MMORPG Framework
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
#include "stdmisc.h"
#include "nel/misc/noise_value.h"
#include "nel/misc/fast_floor.h"
#include "nel/misc/random.h"
namespace NLMISC
{
// 3 level: best quality/speed ratio.
#define NL3D_NOISE_LEVEL 3
#define NL3D_NOISE_GRID_SIZE_SHIFT 5
#define NL3D_NOISE_GRID_SIZE (1<> 5;
_Texture3d[id]= v&255;
}
}
}
// init sizes.
uint i;
// sum of sizes must be 1, and each level must be /2.
float sizeSum=0;
for(i=0; i