Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2005, 7:22:17 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: now particles are transparent, but the loadscreen does not look good anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/importer/material.cc

    r3914 r3946  
    8888 
    8989  // setting the transparency
    90   if (this->transparency == 1.0)
    91     {
    92       glDisable(GL_BLEND);
    93     }
    94   else
     90  if (this->transparency < 1.0)
    9591    {
    9692      glEnable(GL_BLEND);
    9793      glColor4f(1.0f, 1.0f, 1.0f, this->transparency);
    9894      glBlendFunc(GL_SRC_ALPHA, GL_ONE);
     95    }
     96  else
     97    {
     98      glDisable(GL_BLEND);
     99      glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
    99100    }
    100101
Note: See TracChangeset for help on using the changeset viewer.