SimpleNGL 1.0
|
00001 #ifndef NOISEDEFORMER_H 00002 #define NOISEDEFORMER_H 00003 00004 #include "PerlinNoise.h" 00005 #include "OpenEXR/ImathVec.h" 00006 #include "PerlinNoise_ispc.h" 00007 00009 00012 class NoiseDeformer 00013 { 00014 public: 00016 NoiseDeformer(); 00017 00019 void init(); 00020 00025 void serial_deform(Imath::V3f *i_points, Imath::V3f *o_points, int _count); 00026 00031 void ispc_deform(Imath::V3f *i_points, Imath::V3f *o_points, int count); 00032 00035 inline void setMag(const float &_value){m_mag = _value;} 00036 private: 00038 PerlinNoise m_perlinNoise; 00039 00041 float m_mag; 00042 }; 00043 00044 #endif // NOISEDEFORMER_H