Perlin 2,3,4 optimisations + Simplex imp fixed + improved architecture
This commit is contained in:
36
include/Nazara/Noise/ComplexNoiseBase.hpp
Normal file
36
include/Nazara/Noise/ComplexNoiseBase.hpp
Normal file
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2012 Rémi Bèges
|
||||
// This file is part of the "Nazara Engine".
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef COMPLEXNOISEBASE_H
|
||||
#define COMPLEXNOISEBASE_H
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
//#include <Nazara/Noise/NoiseBase.hpp>
|
||||
#include "NoiseBase.hpp"
|
||||
|
||||
class NzComplexNoiseBase : public NzNoiseBase
|
||||
{
|
||||
public:
|
||||
NzComplexNoiseBase();
|
||||
~NzComplexNoiseBase();
|
||||
|
||||
void SetLacunarity(float lacunarity);
|
||||
void SetHurstParameter(float h);
|
||||
void SetOctavesNumber(float octaves);
|
||||
void RecomputeExponentArray();
|
||||
|
||||
protected:
|
||||
float m_lacunarity;
|
||||
float m_hurst;
|
||||
float m_octaves;
|
||||
float exponent_array[30];
|
||||
float m_sum;
|
||||
private:
|
||||
bool m_parametersModified;
|
||||
|
||||
};
|
||||
|
||||
#endif // COMPLEXNOISEBASE_H
|
||||
Reference in New Issue
Block a user