TerraForge3D  2.3.1
3D Terrain And Landscape Generator
NoiseLayer.h
1#pragma once
2
3#include "json/json.hpp"
4#include <string>
5
6class FastNoiseLite;
7
9{
10 float x;
11 float y;
12 float z;
13};
14
16{
17public:
18 NoiseLayer();
20
21 nlohmann::json Save();
22 void Load(nlohmann::json data);
23 float Evaluate(NoiseLayerInput input);
24 void Render(int index);
25
26 std::string name;
27 const char *noiseTypeStr, *distFuncStr, *fractalTypeStr;
28 int seed, octaves;
29 float frequency, lacunarity, gain, weightedStrength, pingPongStrength, strength, cellularJitter;
30 int fractalType, distanceFunc, noiseType;
31 FastNoiseLite *noiseGen;
32 float offset[3];
33 bool enabled;
34};
a class to store JSON values
Definition: json.hpp:17860