Changeset 7768 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
- Timestamp:
- May 23, 2006, 12:06:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r7679 r7768 27 27 virtual bool deactivate(); 28 28 29 virtual void draw() const; 29 30 virtual void tick(float dt); 30 31 31 32 32 private: 33 33 // Basic noise map 32x32 34 float map32[32 * 32]; 35 36 // The cloud map 37 float map256[256 * 256]; 38 39 char texture[256][256][3]; //Temporary array to hold texture RGB values 40 41 float noise(int x, int y, int random); 42 void setNoise(float *map); 43 float interpolate(float x, float y, float *map); 44 void overlapOctaves(float *map32, float *map256); 45 void expFilter(float *map); 34 46 }; 35 47
Note: See TracChangeset
for help on using the changeset viewer.