|
Rebel Fork Framework
|
Incremental light baker. More...
#include <Urho3D/Glow/IncrementalLightBaker.h>
Public Member Functions | |
| IncrementalLightBaker () | |
| Construct. | |
| ~IncrementalLightBaker () | |
| Destruct. | |
| bool | Initialize (const LightBakingSettings &settings, Scene *scene, BakedSceneCollector *collector, BakedLightCache *cache) |
| Initialize light baker. Relatively lightweigh. | |
| void | ProcessScene () |
| Process and update the scene. Scene collector is used here. | |
| bool | Bake (StopToken stopToken) |
| void | CommitScene () |
| Commit the rest of changes to scene. Scene collector is used here. | |
| const IncrementalLightBakerStatus & | GetStatus () const |
| Return current status. Thread-safe. | |
Private Attributes | |
| ea::unique_ptr< Impl > | impl_ |
| Implementation details. | |
Incremental light baker.
| bool Urho3D::IncrementalLightBaker::Bake | ( | StopToken | stopToken | ) |
Bake lighting and save results. It is safe to call Bake from another thread as long as lightmap cache is safe to use from said thread. Return false if canceled.