Ignore:
Timestamp:
11/23/08 21:31:29 (16 years ago)
Author:
mattausch
Message:

normal mappingt: first working version

File:
1 edited

Legend:

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

    r3153 r3154  
    115115                geom->mTangents[line].z = tangent.y; 
    116116 
    117                 geom->mTexcoords[line] = tex; 
     117                geom->mTexcoords[line].first = tex.first; 
     118                geom->mTexcoords[line].second = 1.0f - tex.second; 
    118119 
    119120                static int dummy = 0; 
    120  
    121121                if (dummy ++ < 5) cout << "tangent: " << geom->mTangents[line] << endl; 
    122122                ++ line; 
     
    176176 
    177177                ambient.x = ambient.y = ambient.z = 0.2f; 
    178                 diffuse.x = 0.7f; diffuse.y = 0.4f; diffuse.z = 0.2f; 
    179                 spec.x   = spec.y   = spec.z   =  .0f; 
     178                //diffuse.x = 0.7f; diffuse.y = 0.4f; diffuse.z = 0.2f; 
     179                diffuse.x = diffuse.y = diffuse.z = 1.0f; 
     180                spec.x = spec.y = spec.z = .0f; 
    180181                emm = spec; 
    181182 
     
    217218 
    218219                // set boundary to repeat 
    219                 int boundS = 1; int boundT = 1; 
     220                int boundS, boundT; 
     221                boundS = boundT = 1; 
    220222                 
    221223                ofile.write(reinterpret_cast<char *>(&boundS), sizeof(int)); 
Note: See TracChangeset for help on using the changeset viewer.