Ignore:
Timestamp:
06/22/08 05:24:22 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Material.cpp

    r2782 r2795  
    2020        mAlphaTestEnabled = false; 
    2121 
    22         mAmbientColor = RgbaColor(.2f, .2f, .2f, 1.0f); 
     22        mAmbientColor = RgbaColor(0.2f, 0.2f, 0.2f, 1.0f); 
    2323        mDiffuseColor = RgbaColor(1.0f, 1.0f, 1.0f, 1.0f); 
    24         //mSpecularColor = RgbaColor(0.0f, 0.0f, 0.0f, 1.0f); 
     24        //mSpecularColor = RgbaColor(.0f, .0f, .0f, 1.0f); 
    2525        mSpecularColor = RgbaColor(0.5f, 0.5f, 0.5f, 1.0f); 
     26        mEmmisiveColor = RgbaColor(.0f, .0f, .0f, 1.0f); 
    2627} 
    2728 
    2829 
    29 Material::Material(): mId(0) 
    30 { 
    31         InitMaterial(); 
    32 } 
    33  
    34  
    35 Material::Material(int id):  
    36 mId(id) 
     30Material::Material() 
    3731{ 
    3832        InitMaterial(); 
     
    4337mDiffuseColor(color), 
    4438mAmbientColor(color), 
    45 mSpecularColor(0, 0, 0, 1),  
    46 mId(0), 
     39mSpecularColor(0, 0, 0, 1), 
    4740mTexture(NULL) 
    4841{ 
    49 } 
    50  
    51  
    52 int Material::GetId() const 
    53 { 
    54         return mId; 
    5542} 
    5643 
     
    8067        glMaterialfv(GL_FRONT, GL_AMBIENT, (float *)&mAmbientColor.r); 
    8168        glMaterialfv(GL_FRONT, GL_DIFFUSE, (float *)&mDiffuseColor.r); 
     69        glMaterialfv(GL_FRONT, GL_EMISSION, (float *)&mEmmisiveColor.r); 
    8270        glMaterialfv(GL_FRONT, GL_SPECULAR, (float *)&mSpecularColor.r); 
    8371} 
Note: See TracChangeset for help on using the changeset viewer.