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

浏览源代码.

命名空间

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

函数

CaveBreakdownSet eve::procgen::createCaveBreakdown (const std::vector< CaveBreakdownChamber > &chambers, int eventCount, float strength, uint32_t seed)
 Create paired ceiling-spall scars and floor blocks from host chambers.
 
float eve::procgen::carveCaveBreakdownScars (float x, float y, float z, float current, const CaveBreakdownSet &breakdown)
 Carve the event's shallow ceiling detachment scars from a cave SDF.
 
float eve::procgen::addCaveBreakdownBlocks (float x, float y, float z, float current, const CaveBreakdownSet &breakdown)
 Union the event's landed breakdown blocks into a cave SDF.
 
bool eve::procgen::isCaveBreakdownBlockSurface (float x, float y, float z, float tolerance, const CaveBreakdownSet &breakdown)
 Test whether a point lies on a generated breakdown block surface.