Changeset 8828 in orxonox.OLD for branches/mountain_lake/src/world_entities/environments/mapped_water.h
- Timestamp:
- Jun 27, 2006, 3:01:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/world_entities/environments/mapped_water.h
r8792 r8828 44 44 45 45 // functions to set parameters for the water, usually they're called through loadparam 46 void setLightPos(float x, float y, float z) { this->lightPos = Vector(x,y,z); } ;47 void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); } ;48 void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; } ;49 void setWaterAngle(float angle) { this->waterAngle = angle; } ;50 void setWaterUV(float uv) { this->waterUV = uv; } ;46 void setLightPos(float x, float y, float z) { this->lightPos = Vector(x,y,z); } 47 void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); } 48 void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; } 49 void setWaterAngle(float angle) { this->waterAngle = angle; } 50 void setWaterUV(float uv) { this->waterUV = uv; } 51 51 void setWaterFlow(float flow) { this->waterFlow = flow; }; 52 void setNormalMapScale(float scale) { this->kNormalMapScale = scale; } ;53 void setShininess(float shine) { this->shininess = shine; } ;54 void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); };52 void setNormalMapScale(float scale) { this->kNormalMapScale = scale; } 53 void setShininess(float shine) { this->shininess = shine; } 54 void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); this->newWaterColor = this->waterColor; } 55 55 56 56 // functions to change water parameters during runtime … … 61 61 62 62 // fade functions 63 void fadeWaterColor(float r, float g, float b, float time) ;63 void fadeWaterColor(float r, float g, float b, float time) {this->newWaterColor = Vector(r, g, b); this->colorFadeTime = time; } 64 64 void fadeShininess(float shine, float time); 65 65 void fadeLightPos(float x, float y, float z, float time); … … 76 76 float waterAngle; //!< defines how much the water will be turned around the point waterPos 77 77 Vector waterColor; //!< color of the water 78 float move; //!< textures coords, speeds, positions for the shaded textures.... 78 79 Vector newWaterColor; //!< used to fade the water color 80 float colorFadeTime; 81 82 float move; 79 83 float move2; 80 84 float waterUV; //!< size of the waves
Note: See TracChangeset
for help on using the changeset viewer.