|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
scaling for camera effects that map scripts trigger (image trail, radial blur, screen shake, FOV/aspect multiplier, roll), to reduce motion sickness. More...
#include <cstring>Go to the source code of this file.
Enumerations | |
| enum | eLuxScriptedMotion { eLuxScriptedMotion_Full , eLuxScriptedMotion_Reduced , eLuxScriptedMotion_Off , eLuxScriptedMotion_LastEnum } |
Functions | |
| float | LuxScriptedMotionScale (int alLevel) |
| 1 = stock strength, 0 = no effect. | |
| float | LuxScaleEffectAmount (float afAmount, float afScale) |
| Effects whose neutral value is 0 (trail amount, blur size, shake amount, roll angle). | |
| float | LuxScaleEffectMul (float afMul, float afScale) |
| Effects whose neutral value is 1 (FOV and aspect multipliers). | |
| const char * | LuxScriptedMotionToString (int alLevel) |
| int | LuxScriptedMotionFromString (const char *asX) |
Variables | |
| static const char *const | gvLuxScriptedMotionNames [eLuxScriptedMotion_LastEnum] = { "Full", "Reduced", "Off" } |
scaling for camera effects that map scripts trigger (image trail, radial blur, screen shake, FOV/aspect multiplier, roll), to reduce motion sickness.
Pure functions, unit tested in tests/cpp/test_scripted_motion.cpp.
Definition in file LuxScriptedMotion.h.
| enum eLuxScriptedMotion |
| Enumerator | |
|---|---|
| eLuxScriptedMotion_Full | |
| eLuxScriptedMotion_Reduced | |
| eLuxScriptedMotion_Off | |
| eLuxScriptedMotion_LastEnum | |
Definition at line 11 of file LuxScriptedMotion.h.
|
inline |
1 = stock strength, 0 = no effect.
Unknown levels fall back to stock.
Definition at line 21 of file LuxScriptedMotion.h.
|
inline |
Effects whose neutral value is 0 (trail amount, blur size, shake amount, roll angle).
Definition at line 32 of file LuxScriptedMotion.h.
|
inline |
Effects whose neutral value is 1 (FOV and aspect multipliers).
Definition at line 38 of file LuxScriptedMotion.h.
|
inline |
Definition at line 45 of file LuxScriptedMotion.h.
|
inline |
Definition at line 51 of file LuxScriptedMotion.h.
|
static |
Definition at line 43 of file LuxScriptedMotion.h.