Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 22, 2006, 4:40:28 PM (18 years ago)
Author:
hdavid
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

    r8730 r8733  
    9999
    100100  Shader::Uniform(shader, "Noise").set(0);
    101   Shader::Uniform(shader, "SkyColor").set(0.0f, 0.0f, 0.8f);
     101  //Shader::Uniform(shader, "SkyColor").set(0.0f, 0.0f, 0.8f);
    102102  Shader::Uniform(shader, "CloudColor").set(0.8f, 0.8f, 0.8f);
    103103 
    104104  offset = new Shader::Uniform(shader, "Offset");
     105  skycolor = new Shader::Uniform(shader, "SkyColor");
     106  skycolor->set(0.0f, 0.0f, 0.0f);
    105107
    106108  this->shader->deactivateShader();
     
    162164    this->shader->activateShader();
    163165    offset->set(0.0f, 0.0f, offsetZ);
     166    skycolor->set(offsetZ/10, 0.0f, 0.0f);
    164167    this->shader->deactivateShader();
    165168  }
  • branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h

    r8730 r8733  
    9595  Shader*          shader;
    9696  Shader::Uniform* offset;
     97  Shader::Uniform* skycolor;
    9798  float            offsetZ;
    9899  float            scale;
Note: See TracChangeset for help on using the changeset viewer.