Changeset 6972 for code/branches/skybox2/src/modules
- Timestamp:
- May 27, 2010, 4:58:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/skybox2/src/modules/designtools/CreateStars.cc
r6936 r6972 86 86 orxonox::ColourValue thisColour = colour_; 87 87 float alpha = alpha_+rnd(-alphaDiff_,alphaDiff_); 88 thisColour.r=clamp( thisColour.r*alpha+r, 0.0f, 1.0f);89 thisColour.g=clamp( thisColour.g*alpha+g, 0.0f, 1.0f);90 thisColour.b=clamp( thisColour.b*alpha+b, 0.0f, 1.0f);88 thisColour.r=clamp((thisColour.r+r)*alpha, 0.0f, 1.0f); 89 thisColour.g=clamp((thisColour.g+g)*alpha, 0.0f, 1.0f); 90 thisColour.b=clamp((thisColour.b+b)*alpha, 0.0f, 1.0f); 91 91 92 92 bb->setMaterial(material_);
Note: See TracChangeset
for help on using the changeset viewer.