Adds preferences for limiting the maximum number of local lights, as well as distance-based fading of local lights.

This commit is contained in:
Areloch 2020-08-02 23:16:03 -05:00
parent 9e792845f7
commit 7b02d81b54
4 changed files with 115 additions and 2 deletions

View file

@ -144,6 +144,9 @@ protected:
/// when prioritizing lights for rendering.
F32 mScore;
/// A temporary value which holds the amount this light is faded due to distance
F32 mFadeAmount;
/// Whether to render debugging visualizations
/// for this light.
bool mDebugRender;
@ -206,6 +209,9 @@ public:
void setScore( F32 score ) { mScore = score; }
F32 getScore() const { return mScore; }
void setFadeAmount(F32 fade) { mFadeAmount = fade; }
F32 getFadeAmount() const { return mFadeAmount; }
bool isDebugRenderingEnabled() const { return mDebugRender; }
void enableDebugRendering( bool value ) { mDebugRender = value; }