Blender  V3.3
Functions
eevee_lightcache.h File Reference
#include "BLI_sys_types.h"

Go to the source code of this file.

Functions

struct wmJobEEVEE_lightbake_job_create (struct wmWindowManager *wm, struct wmWindow *win, struct Main *bmain, struct ViewLayer *view_layer, struct Scene *scene, int delay, int frame)
 
voidEEVEE_lightbake_job_data_alloc (struct Main *bmain, struct ViewLayer *view_layer, struct Scene *scene, bool run_as_job, int frame)
 
void EEVEE_lightbake_job_data_free (void *custom_data)
 
void EEVEE_lightbake_update (void *custom_data)
 
void EEVEE_lightbake_job (void *custom_data, short *stop, short *do_update, float *progress)
 
void EEVEE_lightbake_update_world_quick (struct EEVEE_ViewLayerData *sldata, struct EEVEE_Data *vedata, const Scene *scene)
 
struct LightCacheEEVEE_lightcache_create (int grid_len, int cube_len, int cube_size, int vis_size, const int irr_size[3])
 
void EEVEE_lightcache_free (struct LightCache *lcache)
 
bool EEVEE_lightcache_load (struct LightCache *lcache)
 
void EEVEE_lightcache_info_update (struct SceneEEVEE *eevee)
 
void EEVEE_lightcache_blend_write (struct BlendWriter *writer, struct LightCache *cache)
 
void EEVEE_lightcache_blend_read_data (struct BlendDataReader *reader, struct LightCache *cache)
 

Function Documentation

◆ EEVEE_lightbake_job()

void EEVEE_lightbake_job ( void custom_data,
short *  stop,
short *  do_update,
float progress 
)

Definition at line 1359 of file eevee_lightcache.c.

References BLI_assert, BLI_thread_is_main(), EEVEE_LightBake::bounce_curr, EEVEE_LightBake::bounce_len, EEVEE_LightBake::cube, LightCache::cube_data, EEVEE_LightBake::cube_len, EEVEE_LightBake::cube_offset, EEVEE_LightBake::cube_prb, DEG_evaluate_on_framechange(), DEG_get_evaluated_view_layer(), DEG_graph_relations_update(), EEVEE_LightBake::delay, depsgraph, EEVEE_LightBake::depsgraph, EEVEE_LightBake::do_update, eevee_lightbake_context_disable(), eevee_lightbake_context_enable(), eevee_lightbake_count_probes(), eevee_lightbake_create_render_target(), eevee_lightbake_create_resources(), eevee_lightbake_delete_resources(), eevee_lightbake_gather_probes(), eevee_lightbake_readback_irradiance(), eevee_lightbake_readback_reflections(), eevee_lightbake_render_grid_sample(), eevee_lightbake_render_probe_sample(), eevee_lightbake_render_world_sample(), EEVEE_lightbake_update(), LightCache::flag, EEVEE_LightBake::frame, G, EEVEE_LightBake::gl_context, EEVEE_LightBake::grid, EEVEE_LightBake::grid_curr, LightCache::grid_data, EEVEE_LightBake::grid_len, EEVEE_LightBake::grid_prb, LightProbe::grid_resolution_x, LightProbe::grid_resolution_y, LightProbe::grid_resolution_z, EEVEE_LightBake::grid_sample, EEVEE_LightBake::grid_sample_len, EEVEE_LightBake::lcache, lightbake_do_sample(), LIGHTCACHE_BAKED, LIGHTCACHE_BAKING, LIGHTCACHE_INVALID, LIGHTCACHE_UPDATE_CUBE, LIGHTCACHE_UPDATE_GRID, LIGHTCACHE_UPDATE_WORLD, NULL, PIL_sleep_ms(), EEVEE_LightBake::probe, EEVEE_LightBake::progress, EEVEE_LightBake::rt_res, EEVEE_LightBake::stop, and EEVEE_LightBake::view_layer.

Referenced by EEVEE_lightbake_job_create(), and light_cache_bake_exec().

◆ EEVEE_lightbake_job_create()

struct wmJob* EEVEE_lightbake_job_create ( struct wmWindowManager wm,
struct wmWindow win,
struct Main bmain,
struct ViewLayer view_layer,
struct Scene scene,
int  delay,
int  frame 
)

◆ EEVEE_lightbake_job_data_alloc()

void* EEVEE_lightbake_job_data_alloc ( struct Main bmain,
struct ViewLayer view_layer,
struct Scene scene,
bool  run_as_job,
int  frame 
)

◆ EEVEE_lightbake_job_data_free()

void EEVEE_lightbake_job_data_free ( void custom_data)

◆ EEVEE_lightbake_update()

void EEVEE_lightbake_update ( void custom_data)

◆ EEVEE_lightbake_update_world_quick()

void EEVEE_lightbake_update_world_quick ( struct EEVEE_ViewLayerData sldata,
struct EEVEE_Data vedata,
const Scene scene 
)

◆ EEVEE_lightcache_blend_read_data()

void EEVEE_lightcache_blend_read_data ( struct BlendDataReader reader,
struct LightCache cache 
)

◆ EEVEE_lightcache_blend_write()

void EEVEE_lightcache_blend_write ( struct BlendWriter writer,
struct LightCache cache 
)

◆ EEVEE_lightcache_create()

struct LightCache* EEVEE_lightcache_create ( int  grid_len,
int  cube_len,
int  cube_size,
int  vis_size,
const int  irr_size[3] 
)

◆ EEVEE_lightcache_free()

void EEVEE_lightcache_free ( struct LightCache lcache)

◆ EEVEE_lightcache_info_update()

void EEVEE_lightcache_info_update ( struct SceneEEVEE eevee)

◆ EEVEE_lightcache_load()

bool EEVEE_lightcache_load ( struct LightCache lcache)