- Timestamp:
- 11/10/08 18:43:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShaderProgram.cpp
r3114 r3115 17 17 18 18 static float sCurrentTimer = 0; 19 static float sOldTimer = 0; 19 20 static Matrix4x4 sCurrentViewMatrix = IdentityMatrix(); 20 21 static Vector3 sCurrentViewDir = Vector3::UNIT_Y(); … … 158 159 { 159 160 mTimerParam = idx; 161 } 162 163 164 void GPUProgramParameters::SetOldTimerParam(int idx) 165 { 166 mOldTimerParam = idx; 160 167 } 161 168 … … 318 325 if (mTimerParam >= 0) 319 326 mProgram->SetValue1f(mTimerParam, sCurrentTimer); 320 327 if (mOldTimerParam >= 0) 328 mProgram->SetValue1f(mOldTimerParam, sOldTimer); 321 329 if (mViewDirParam >= 0) 322 330 mProgram->SetValue3f(mViewDirParam, sCurrentViewDir.x, sCurrentViewDir.y, sCurrentViewDir.z); … … 339 347 { 340 348 static PerfTimer mytimer; 349 sOldTimer = sCurrentTimer; 341 350 sCurrentTimer = mytimer.Elapsedms(false) * M_PI / 180.0f; 342 351
Note: See TracChangeset
for help on using the changeset viewer.