Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6972


Ignore:
Timestamp:
May 27, 2010, 4:58:35 PM (14 years ago)
Author:
gionc
Message:

updated StarCreator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/skybox2/src/modules/designtools/CreateStars.cc

    r6936 r6972  
    8686            orxonox::ColourValue thisColour = colour_;
    8787            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);
    9191
    9292            bb->setMaterial(material_);
Note: See TracChangeset for help on using the changeset viewer.