Changeset 3145
- Timestamp:
- 11/19/08 18:44:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r3144 r3145 293 293 Technique *deferred = new Technique(*tech); 294 294 295 if (deferred->GetTexture()) 296 deferred->SetFragmentProgram(sDefaultFragmentTexProgramMrt); 295 if (mUseNormalMapping) 296 { 297 deferred->SetFragmentProgram(sNormalMappingVertexProgramMrt); 298 deferred->SetVertexProgram(sNormalMappingVertexProgramMrt); 299 } 297 300 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 } 299 309 300 310 deferred->GetFragmentProgramParameters()->SetViewMatrixParam(0); 301 302 deferred->SetVertexProgram(sDefaultVertexProgramMrt); 311 303 312 304 313 deferred->GetVertexProgramParameters()->SetModelMatrixParam(1);
Note: See TracChangeset
for help on using the changeset viewer.