Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2006, 9:08:19 PM (18 years ago)
Author:
bottac
Message:

Experimental lightmapping. Screenshots: http://people.ee.ethz.ch/~bottac/lightmap_test/

File:
1 edited

Legend:

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

    r7221 r7465  
    8989  this->setName(m.getName());
    9090}
    91 
     91 
     92bool Material::select0() const
     93{
     94  glActiveTextureARB(GL_TEXTURE0_ARB);
     95  glBindTexture(GL_TEXTURE_2D, this->diffuseTexture->getTexture());
     96  glEnable(GL_TEXTURE_2D);
     97 
     98}
    9299
    93100/**
     
    162169/**
    163170 *  Sets the Material Diffuse Color.
    164  * @param r Red Color Channel.
     171 * @param r Red Color Channel.a
    165172 * @param g Green Color Channel.
    166173 * @param b Blue Color Channel.
Note: See TracChangeset for help on using the changeset viewer.