载入中...
搜索中...
未找到
CaveSediment.cpp 文件参考
#include "procgen/algorithms/CaveSediment.h"
#include <algorithm>
#include <cmath>
#include <random>
#include <utility>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

CaveSedimentSet eve::procgen::createCaveSediment (const std::vector< CaveSedimentPathPoint > &path, int barCount, float strength, float paragenesis, uint32_t seed)
 Create flow-aligned cave sediment bars with upstream-imbricated gravel.
 
float eve::procgen::carveCaveParagenesis (float x, float y, float z, float current, const CaveSedimentSet &sediment)
 Carve flow-aligned antigravitative ceiling channels above generated sediment bars.
 
float eve::procgen::addCaveSediment (float x, float y, float z, float current, const CaveSedimentSet &sediment)
 Union sediment bars and imbricated clasts into a cave SDF.
 
bool eve::procgen::isCaveSedimentSurface (float x, float y, float z, float tolerance, const CaveSedimentSet &sediment)
 Test whether a point lies on a generated sediment surface.