Ignore:
Timestamp:
10/20/08 02:29:28 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3047 r3048  
    118118 
    119119        /////////////// 
    120         //-- load lod levels 
     120        //-- load LOD levels 
    121121 
    122122        // note: lods must be ordered from smallest distance to largest 
     
    126126        for (int i = 0; i < numLODs; ++ i) 
    127127        { 
     128                // the distance until the next LOD level is used 
    128129                float dist; 
    129130                str.read(reinterpret_cast<char *>(&dist), sizeof(float)); 
     
    158159        //-- hack: add tree animation (should be done per material script!) 
    159160 
    160         if (numLODs > 1) 
     161        if (0)//numLODs > 1) 
    161162        { 
    162163                ShapeContainer::iterator sstart, send; 
     
    320321        deferred->SetVertexProgram(mMrtDefaultVertexProgram); 
    321322         
     323 
     324        /////////// 
     325        //-- add depth pass 
     326 
     327        Technique *depthPass = new Technique(*tech); 
     328        depthPass->SetColorWriteEnabled(false); 
     329        depthPass->SetLightingEnabled(false); 
     330 
    322331        mat->AddTechnique(deferred); 
     332        mat->AddTechnique(depthPass); 
    323333 
    324334        return mat; 
Note: See TracChangeset for help on using the changeset viewer.