Rebel Fork Framework
Urho3D::IncrementalLightBaker Class Reference

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 IncrementalLightBakerStatusGetStatus () const
 Return current status. Thread-safe.
 

Private Attributes

ea::unique_ptr< Impl > impl_
 Implementation details.
 

Detailed Description

Incremental light baker.

Member Function Documentation

◆ Bake()

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.


The documentation for this class was generated from the following files: