Changeset 3145


Ignore:
Timestamp:
11/19/08 18:44:08 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3144 r3145  
    293293        Technique *deferred = new Technique(*tech); 
    294294 
    295         if (deferred->GetTexture()) 
    296                 deferred->SetFragmentProgram(sDefaultFragmentTexProgramMrt); 
     295        if (mUseNormalMapping) 
     296        { 
     297                deferred->SetFragmentProgram(sNormalMappingVertexProgramMrt); 
     298                deferred->SetVertexProgram(sNormalMappingVertexProgramMrt); 
     299        } 
    297300        else 
    298                 deferred->SetFragmentProgram(sDefaultFragmentProgramMrt); 
     301        { 
     302                if (deferred->GetTexture()) 
     303                        deferred->SetFragmentProgram(sDefaultFragmentTexProgramMrt); 
     304                else 
     305                        deferred->SetFragmentProgram(sDefaultFragmentProgramMrt); 
     306 
     307                deferred->SetVertexProgram(sDefaultVertexProgramMrt); 
     308        } 
    299309 
    300310        deferred->GetFragmentProgramParameters()->SetViewMatrixParam(0); 
    301  
    302         deferred->SetVertexProgram(sDefaultVertexProgramMrt); 
     311         
    303312 
    304313        deferred->GetVertexProgramParameters()->SetModelMatrixParam(1); 
Note: See TracChangeset for help on using the changeset viewer.