Changeset 8787 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
- Timestamp:
- Jun 26, 2006, 2:29:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r8781 r8787 48 48 inline void activateCloud() 49 49 { this->activate(); } 50 50 51 51 inline void deactivateCloud() 52 52 { this->deactivate(); } 53 53 54 54 inline void setCloudOption(const std::string& option) 55 55 { … … 57 57 this->cloudActivate = true; 58 58 } 59 59 60 60 inline void setAnimationSpeed(float speed) 61 61 { this->animationSpeed = speed; } 62 62 63 63 inline void setCloudScale(float scale) 64 64 { this->scale = scale; } 65 65 66 66 inline void setCloudColor(float colorX, float colorY, float colorZ) 67 67 { this->cloudColor = Vector(colorX, colorY, colorZ); } 68 68 69 69 inline void setSkyColor(float colorX, float colorY, float colorZ) 70 70 { this->skyColor = Vector(colorX, colorY, colorZ); } 71 71 72 72 inline void setPlanetRadius(float planetRadius) 73 73 { this->planetRadius = planetRadius; } 74 74 75 75 inline void setAtmosphericRadius(float atmosphericRadius) 76 76 { this->atmosphericRadius = atmosphericRadius; } 77 77 78 78 inline void setDivisions(int divs) 79 79 { this->divs = divs; } 80 80 81 81 virtual void draw() const; 82 82 virtual void tick(float dt); 83 84 static void changeSkyColor(Vector color); 85 static void changeCloudColor(Vector color); 83 86 84 87 static Vector cloudColor; 88 static Vector skyColor; 85 89 86 90 void make3DNoiseTexture(); … … 97 101 bool cloudActivate; 98 102 float animationSpeed; 99 Vector cloudColor;100 Vector skyColor;101 103 102 104 // Material cloudMaterial; 103 105 Skydome* skydome; 104 106 105 107 // SHADER STUFF 106 108 Shader* shader;
Note: See TracChangeset
for help on using the changeset viewer.