AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxScriptedMotion.h File Reference

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" }

Detailed Description

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.

Enumeration Type Documentation

◆ eLuxScriptedMotion

Enumerator
eLuxScriptedMotion_Full 
eLuxScriptedMotion_Reduced 
eLuxScriptedMotion_Off 
eLuxScriptedMotion_LastEnum 

Definition at line 11 of file LuxScriptedMotion.h.

Function Documentation

◆ LuxScriptedMotionScale()

float LuxScriptedMotionScale ( int alLevel)
inline

1 = stock strength, 0 = no effect.

Unknown levels fall back to stock.

Definition at line 21 of file LuxScriptedMotion.h.

◆ LuxScaleEffectAmount()

float LuxScaleEffectAmount ( float afAmount,
float afScale )
inline

Effects whose neutral value is 0 (trail amount, blur size, shake amount, roll angle).

Definition at line 32 of file LuxScriptedMotion.h.

◆ LuxScaleEffectMul()

float LuxScaleEffectMul ( float afMul,
float afScale )
inline

Effects whose neutral value is 1 (FOV and aspect multipliers).

Definition at line 38 of file LuxScriptedMotion.h.

◆ LuxScriptedMotionToString()

const char * LuxScriptedMotionToString ( int alLevel)
inline

Definition at line 45 of file LuxScriptedMotion.h.

◆ LuxScriptedMotionFromString()

int LuxScriptedMotionFromString ( const char * asX)
inline

Definition at line 51 of file LuxScriptedMotion.h.

Variable Documentation

◆ gvLuxScriptedMotionNames

const char* const gvLuxScriptedMotionNames[eLuxScriptedMotion_LastEnum] = { "Full", "Reduced", "Off" }
static

Definition at line 43 of file LuxScriptedMotion.h.