Changes by maxine

This commit is contained in:
2024-12-17 19:51:10 -05:00
parent 9875e5d0b0
commit ede437eabd
2 changed files with 13 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ namespace CaveGame::Core
explicit Generator(int seed);
TileID HeightMap(float depth, int wx, int wy);
float ComputePass(std::vector<Vector3>passes, float scaleFactor, float rng);
//TileID ComputePass(float noiseX, float noiseY, float noiseZ, float scaleFactor, float rng);
TileID ComputeTile(int wx, int wy);
void FirstPass(Chunk& chunk);

View File

@@ -49,6 +49,17 @@ namespace CaveGame::Core
else { return TileID::STONE; }
}
float Generator::ComputePass(std::vector<Vector3> passes, float scaleFactor, float rng) {
float a;
float b;
float c;
float result = 0;
std::transform(passes.begin(), passes.end(), std::back_inserter(result), ::toupper);
return 0.f;
}
TileID Generator::ComputeTile(int wx, int wy) {