mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Adds preferences for limiting the maximum number of local lights, as well as distance-based fading of local lights.
This commit is contained in:
parent
9e792845f7
commit
7b02d81b54
4 changed files with 115 additions and 2 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue