| 475 | } |
| 476 | |
| 477 | inline float ShutterSpeedValue_() |
| 478 | { |
| 479 | static const float ShutterSpeedValues[] = |
| 480 | { |
| 481 | 1.0f / 1.0f, 1.0f / 2.0f, 1.0f / 4.0f, 1.0f / 8.0f, 1.0f / 15.0f, 1.0f / 30.0f, |
| 482 | 1.0f / 60.0f, 1.0f / 125.0f, 1.0f / 250.0f, 1.0f / 500.0f, 1.0f / 1000.0f, 1.0f / 2000.0f, 1.0f / 4000.0f, |
| 483 | }; |
| 484 | StaticAssert_(ArraySize_(ShutterSpeedValues) == uint64(ShutterSpeeds::NumValues)); |
| 485 | |
| 486 | return ShutterSpeedValues[uint64(AppSettings::ShutterSpeed)]; |
| 487 | } |
| 488 | |
| 489 | inline float VerticalFOV(float aspectRatio) |
| 490 | { |