TerraForge3D  2.3.1
3D Terrain And Landscape Generator
LayeredNoiseManager.h
1#pragma once
2
3#include "NoiseLayer.h"
4#include "json/json.hpp"
5
6#include <vector>
7#include <mutex>
8
10{
11public:
13
14 void UpdateLayers();
15 void Render();
16 void Load(nlohmann::json data);
17 nlohmann::json Save();
18 float Evaluate(float x, float y, float z);
19
20 float offset[3];
21 float strength;
22 bool absv; // Temporary
23 bool sq; // Temporary
24 std::vector<NoiseLayer *> noiseLayers, toAdd;
25 std::vector<int> toDelete;
26
27 std::mutex mutex;
28};
a class to store JSON values
Definition: json.hpp:17860