Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7976 in orxonox.OLD for branches/atmospheric_engine/src


Ignore:
Timestamp:
May 30, 2006, 1:21:55 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine

Location:
branches/atmospheric_engine/src/lib/graphics/effects
Files:
2 edited

Legend:

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

    r7810 r7976  
    6363        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
    6464        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
     65
     66        glGenTextures(2, &texID[0]);
    6567
    6668        // Generate noise map a
     
    101103                }
    102104
    103         glGenTextures(2, &texID[0]);
    104105        glBindTexture(GL_TEXTURE_2D, texID[0]);
     106
     107        glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 256, 256, GL_RGB, GL_UNSIGNED_BYTE, cloudTexture);
    105108        gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, 256, 256, GL_RGB, GL_UNSIGNED_BYTE, cloudTexture);
     109
    106110}
    107111
     
    145149                //map32anim = (map32a * (10 - timer)) + (map32b * timer);
    146150                CloudEffect::calcAnimMap(timer);
    147 
    148                 CloudEffect::overlapOctaves();
    149                 CloudEffect::expFilter();
     151                //CloudEffect::overlapOctaves();
     152                //CloudEffect::expFilter();
    150153                CloudEffect::genCloudTexture();
    151154
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc

    r7810 r7976  
    3434
    3535CREATE_FACTORY(RainEffect, CL_RAIN_EFFECT);
     36
     37// TODO: Dim Light with Rain, Finish preCaching, check out if multiple rain emitters work
    3638
    3739RainEffect::RainEffect(const TiXmlElement* root)
Note: See TracChangeset for help on using the changeset viewer.