Definition at line 236 of file RotorBrowserContext.h. References degrade(), and mDirection. Referenced by UpdateViewsToContext(). 00238 { 00239 float dist; 00240 switch (abs(depth)) { 00241 case 0: dist = 0.0f; w = 1.8f; break; 00242 case 1: dist = 0.44f; w = 1.3f; break; 00243 default: dist = 0.56f; w = 1.0f; break; 00244 } 00245 if (depth < 0) dist = -dist; 00246 00247 float xInc = cos(mDirection); 00248 float yInc = sin(mDirection); 00249 float fact = 1.1f; 00250 x = xInc * fact * depth + dist * xInc; 00251 y = yInc * fact * depth + dist * yInc; 00252 z = -10.0f + degrade(depth/6.0)*3.0; 00253 00254 h = 1.0f; 00255 if (depth >=2) h -= 0.2 * (depth-2); 00256 if (depth <=-2) h -= 0.2 * -(depth+2); 00257 if (h < 0) h = 0; 00258 }
Here is the call graph for this function:
|