Changeset 8733 in orxonox.OLD for branches/atmospheric_engine/src
- Timestamp:
- Jun 22, 2006, 4:40:28 PM (18 years ago)
- 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 99 99 100 100 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); 102 102 Shader::Uniform(shader, "CloudColor").set(0.8f, 0.8f, 0.8f); 103 103 104 104 offset = new Shader::Uniform(shader, "Offset"); 105 skycolor = new Shader::Uniform(shader, "SkyColor"); 106 skycolor->set(0.0f, 0.0f, 0.0f); 105 107 106 108 this->shader->deactivateShader(); … … 162 164 this->shader->activateShader(); 163 165 offset->set(0.0f, 0.0f, offsetZ); 166 skycolor->set(offsetZ/10, 0.0f, 0.0f); 164 167 this->shader->deactivateShader(); 165 168 } -
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r8730 r8733 95 95 Shader* shader; 96 96 Shader::Uniform* offset; 97 Shader::Uniform* skycolor; 97 98 float offsetZ; 98 99 float scale;
Note: See TracChangeset
for help on using the changeset viewer.