Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2006, 12:06:44 PM (19 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: cloud hacking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h

    r7679 r7768  
    2727                virtual bool deactivate();
    2828
     29                virtual void draw() const;
    2930                virtual void tick(float dt);
    3031
    31                
    3232        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);
    3446};
    3547
Note: See TracChangeset for help on using the changeset viewer.