Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <noise\module\ridgedmulti.h>
- #include <noise\module\scalebias.h>
- #include <noise\module\scalepoint.h>
- namespace noise
- {
- namespace module
- {
- const double DEFAULT_HILLTURBULENCE_FREQUENCY = DEFAULT_RIDGED_FREQUENCY;
- const double DEFAULT_HILLTURBULENCE_POWER = 1.0;
- const int DEFAULT_HILLTURBULENCE_ROUGHNESS = 3;
- const int DEFAULT_HILLTURBULENCE_SEED = DEFAULT_RIDGED_SEED;
- class HillTurbulence : public Module
- {
- public:
- //Functions
- HillTurbulence();
- ~HillTurbulence();
- double GetFrequency () const;
- double GetPower () const
- {
- return m_power;
- }
- int GetRoughnessCount () const
- {
- return yDistortModule.GetOctaveCount ();
- }
- int GetSeed () const;
- virtual int GetSourceModuleCount () const
- {
- return 1;
- }
- virtual double GetValue (double x, double y, double z) const;
- void SetFrequency (double frequency)
- {
- yDistortModule.SetFrequency (frequency);
- }
- void SetPower (double power)
- {
- m_power = power;
- }
- void SetRoughness (int roughness)
- {
- yDistortModule.SetOctaveCount (roughness);
- }
- void SetSeed (int seed);
- //Variables
- RidgedMulti yDistortModule;
- ScaleBias scaleBiasModule;
- ScalePoint scalePModule;
- protected:
- //Variables
- double m_power;
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement