Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DepthOfFieldEffect.c File Reference

Go to the source code of this file.

Enumerations

enum  DepthOfFieldTypes { NONE , SIMPLE , BOKEH }

Functions

override void DisplayStartDraw (IEntity owner)
override void SettingsChanged ()
override void DisplayControlledEntityChanged (IEntity from, IEntity to)
override void DisplayOnSuspended ()
override void DisplayOnResumed ()
override void UpdateEffect (float timeSlice)
bool IsNearDOFAllowed (out bool forceSimpleDOF)
DepthOfFieldTypes GetDOFType (out bool isNearDOFAllowed, bool settingsChanged=false)
void ToggleForcedSimpleDOF (bool forceSimpleDOF)
void AddDOFBokehEffect (bool nearDofAllowed)
void AddDOFEffect (float timeslice, bool nearDofAllowed)
override void ClearEffects ()

Variables

enum DepthOfFieldTypes FOCUSDISTANCE_MULTIPIER = 30
const int FOCALLENGTH_MAX = 5000
int m_iFocalLengthNearIntensity
const float FOCALDISTANCE_INTENSITY = 0.3
const float STANDARD_FOCALCHANGE_NEAR = 0.25
const int SIMPLEDOF_FOCALCHANGE_MAX = 10000
const int SIMPLEDOF_EFFECT_MAX = 1500
const float DOF_START_OPACITY = 0.7
const float DOF_FADEIN_OPACITY_TARGET = 1
const float DOFOUT_OPACITY_FADEOUT_DURATION = 2
const float DOFOUT_PROGRESSION_FADEOUT_DURATION = 1
const string DOF_NORMAL_EMAT = "{403795B9349EA61C}UI/Materials/ScreenEffects_DepthOfFieldPP.emat"
int m_iCustomFocusDistanceScale
bool m_bForceSimpleToggle
const string DOF_BOKEH_EMAT = "{5CFBB3297D669D9C}UI/Materials/ScreenEffects_DepthOfFieldBokehPP.emat"
ChimeraCharacter m_pCharacterEntity
SightsComponent m_SightsComponent

Enumeration Type Documentation

◆ DepthOfFieldTypes

Enumerator
NONE 
SIMPLE 
BOKEH 

Definition at line 1 of file SCR_DepthOfFieldEffect.c.

Function Documentation

◆ AddDOFBokehEffect()

void AddDOFBokehEffect ( bool nearDofAllowed)
protected

Definition at line 295 of file SCR_DepthOfFieldEffect.c.

◆ AddDOFEffect()

void AddDOFEffect ( float timeslice,
bool nearDofAllowed )
protected

Definition at line 321 of file SCR_DepthOfFieldEffect.c.

◆ ClearEffects()

override void ClearEffects ( )
protected

Definition at line 352 of file SCR_DepthOfFieldEffect.c.

◆ DisplayControlledEntityChanged()

override void DisplayControlledEntityChanged ( IEntity from,
IEntity to )
protected

Definition at line 107 of file SCR_DepthOfFieldEffect.c.

◆ DisplayOnResumed()

override void DisplayOnResumed ( )
protected

Definition at line 121 of file SCR_DepthOfFieldEffect.c.

◆ DisplayOnSuspended()

override void DisplayOnSuspended ( )
protected

Definition at line 114 of file SCR_DepthOfFieldEffect.c.

◆ DisplayStartDraw()

override void DisplayStartDraw ( IEntity owner)
protected

Definition at line 66 of file SCR_DepthOfFieldEffect.c.

◆ GetDOFType()

DepthOfFieldTypes GetDOFType ( out bool isNearDOFAllowed,
bool settingsChanged = false )
protected
Parameters
[out]IsNearDOFAllowedReturns whether this weapon forces simple DOF
[in]settingsChangedCheck sights even if they are the same in case settings change

Definition at line 201 of file SCR_DepthOfFieldEffect.c.

◆ IsNearDOFAllowed()

bool IsNearDOFAllowed ( out bool forceSimpleDOF)
protected
Parameters
[out]forceSimpleDOFReturns whether this weapon forces simple DOF return Whether nearby DOF is allowed by the PIP settings

Definition at line 150 of file SCR_DepthOfFieldEffect.c.

◆ SettingsChanged()

override void SettingsChanged ( )
protected

Definition at line 73 of file SCR_DepthOfFieldEffect.c.

◆ ToggleForcedSimpleDOF()

void ToggleForcedSimpleDOF ( bool forceSimpleDOF)
protected

Definition at line 276 of file SCR_DepthOfFieldEffect.c.

◆ UpdateEffect()

override void UpdateEffect ( float timeSlice)
protected

Definition at line 127 of file SCR_DepthOfFieldEffect.c.

Variable Documentation

◆ DOF_BOKEH_EMAT

const string DOF_BOKEH_EMAT = "{5CFBB3297D669D9C}UI/Materials/ScreenEffects_DepthOfFieldBokehPP.emat"
protected

Definition at line 46 of file SCR_DepthOfFieldEffect.c.

◆ DOF_FADEIN_OPACITY_TARGET

const float DOF_FADEIN_OPACITY_TARGET = 1
protected

Definition at line 24 of file SCR_DepthOfFieldEffect.c.

◆ DOF_NORMAL_EMAT

const string DOF_NORMAL_EMAT = "{403795B9349EA61C}UI/Materials/ScreenEffects_DepthOfFieldPP.emat"
protected

Definition at line 38 of file SCR_DepthOfFieldEffect.c.

◆ DOF_START_OPACITY

const float DOF_START_OPACITY = 0.7
protected

Definition at line 23 of file SCR_DepthOfFieldEffect.c.

◆ DOFOUT_OPACITY_FADEOUT_DURATION

const float DOFOUT_OPACITY_FADEOUT_DURATION = 2
protected

Definition at line 30 of file SCR_DepthOfFieldEffect.c.

◆ DOFOUT_PROGRESSION_FADEOUT_DURATION

const float DOFOUT_PROGRESSION_FADEOUT_DURATION = 1
protected

Definition at line 31 of file SCR_DepthOfFieldEffect.c.

◆ FOCALDISTANCE_INTENSITY

const float FOCALDISTANCE_INTENSITY = 0.3
protected

Definition at line 18 of file SCR_DepthOfFieldEffect.c.

◆ FOCALLENGTH_MAX

const int FOCALLENGTH_MAX = 5000
protected

Definition at line 13 of file SCR_DepthOfFieldEffect.c.

◆ FOCUSDISTANCE_MULTIPIER

enum DepthOfFieldTypes FOCUSDISTANCE_MULTIPIER = 30

◆ m_bForceSimpleToggle

bool m_bForceSimpleToggle
protected

Definition at line 44 of file SCR_DepthOfFieldEffect.c.

◆ m_iCustomFocusDistanceScale

int m_iCustomFocusDistanceScale
protected

Definition at line 43 of file SCR_DepthOfFieldEffect.c.

◆ m_iFocalLengthNearIntensity

int m_iFocalLengthNearIntensity
protected

Definition at line 15 of file SCR_DepthOfFieldEffect.c.

◆ m_pCharacterEntity

ChimeraCharacter m_pCharacterEntity
protected

Definition at line 62 of file SCR_DepthOfFieldEffect.c.

◆ m_SightsComponent

SightsComponent m_SightsComponent
protected

Definition at line 63 of file SCR_DepthOfFieldEffect.c.

◆ SIMPLEDOF_EFFECT_MAX

const int SIMPLEDOF_EFFECT_MAX = 1500
protected

Definition at line 21 of file SCR_DepthOfFieldEffect.c.

◆ SIMPLEDOF_FOCALCHANGE_MAX

const int SIMPLEDOF_FOCALCHANGE_MAX = 10000
protected

Definition at line 20 of file SCR_DepthOfFieldEffect.c.

◆ STANDARD_FOCALCHANGE_NEAR

const float STANDARD_FOCALCHANGE_NEAR = 0.25
protected

Definition at line 19 of file SCR_DepthOfFieldEffect.c.