Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3088 in orxonox.OLD for orxonox/branches/images


Ignore:
Timestamp:
Dec 4, 2004, 10:42:55 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/images: images will now load only to selected regions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/material.cc

    r3087 r3088  
    8383  setDiffuse(0,0,0);
    8484  setAmbient(0,0,0);
    85   setSpecular(0,0,0);
     85  setSpecular(.5,.5,.5);
    8686  setShininess(2.0);
    8787  setTransparency(0.0);
     
    147147  if (diffuseTextureSet)
    148148    glBindTexture(GL_TEXTURE_2D, diffuseTexture);
     149  else
     150    glBindTexture(GL_TEXTURE_2D, 0);
    149151 
    150152}
     
    403405     
    404406      /* Linear Filtering */
    405       glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
     407      glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );                   
    406408      glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
    407409      if ( map )
     
    484486      free(pImage);                                                             // Free the image structure
    485487    }
    486 
     488  return true;
    487489}
    488490
Note: See TracChangeset for help on using the changeset viewer.