载入中...
搜索中...
未找到
CaveCondensation.cpp
浏览该文件的文档.
25CaveCondensationResult erodeCaveByCondensation(std::vector<float>& density, const std::vector<float>& hydraulicExposure,
28 if (strength <= 0.f || nx < 3 || ny < 3 || nz < 3 || density.size() != hydraulicExposure.size()) return result;
62 0.5f + 0.5f * std::sin(px * 31.f + pz * 23.f + phaseB) * std::sin(py * 27.f - px * 17.f + phaseA);
65 const float retreat = std::min(0.032f, 0.032f * std::clamp(strength, 0.f, 1.f) * shell * ceiling *
Definition EvpackPointGraphLoader.h:12
CaveCondensationResult erodeCaveByCondensation(std::vector< float > &density, const std::vector< float > &hydraulicExposure, int nx, int ny, int nz, float strength, uint32_t seed)
Upscale long-term condensation corrosion into shallow ceiling-wall pitting.
Definition CaveCondensation.cpp:25
CaveCondensationResult public API.
Definition CaveCondensation.h:11
float maximumRetreat
Definition CaveCondensation.h:13
int affectedVoxels
Definition CaveCondensation.h:12
float totalRetreat
Definition CaveCondensation.h:14