Untitled
Toggle main menu visibility
Loading...
Searching...
No Matches
lightmap.h
Go to the documentation of this file.
1
5
6
#ifndef LIGHTMAP_H
7
#define LIGHTMAP_H
8
9
10
#include "
core/engine_types.h
"
11
12
16
void
bake_reflection_probes
();
17
22
void
bake_lightmap
(
LightmapData
* ld);
23
28
void
init_lightmap_data
(
LightmapData
* ld);
29
34
void
init_uv_islands
(
LightmapData
* ld);
35
40
void
build_uv_islands
(
MeshNode
* mn);
41
47
void
save_lightmap_to_binary
(
LightmapData
* ld,
const
char
* name);
48
55
void
load_lightmap_from_binary
(
LightmapData
* ld,
const
char
* name);
56
63
void
bake_lighting_probe_volume
(
ProbeVolume
* pv);
64
68
void
reset_lighting_pvs
();
69
73
void
check_lighting_pv
();
74
78
void
LM_regenerate_texels
();
79
83
void
LM_allocate_empty_mns
();
84
85
#endif
engine_types.h
Engine specific types and defines.
LightmapData
The metadata for the lightmap settings.
Definition
engine_types.h:2022
ProbeVolume
The ProbeVolumes for APVs and LPVs, controlled by OBBs.
Definition
engine_types.h:3074
MeshNode
MeshNodes that describe the position of Meshes, GLTF nodes for GLTFAnimations, or hold references to ...
Definition
audio_probe_bake.comp:85
LM_allocate_empty_mns
void LM_allocate_empty_mns()
Allocates texels for MeshNodes that don't have UVIslands generated yet.
Definition
lightmap.c:502
build_uv_islands
void build_uv_islands(MeshNode *mn)
Builds UVIslands over a MeshNode by stepping through TriangleAdjacency and stopping when normals beco...
Definition
lightmap.c:400
bake_reflection_probes
void bake_reflection_probes()
Bakes ReflectionProbes for the entire scene onto cubemaps on RPROBE_CUBE_MAP_ARRAY.
Definition
lightmap.c:786
bake_lightmap
void bake_lightmap(LightmapData *ld)
Bakes a UV Lightmap based on which UVIslands have UVIsland.currently_rasterizing set.
Definition
lightmap.c:1009
LM_regenerate_texels
void LM_regenerate_texels()
Regenerates lightmap texels: re-inits LightmapData, then builds UVIslands, then calls add_all_meshes_...
Definition
lightmap.c:486
load_lightmap_from_binary
void load_lightmap_from_binary(LightmapData *ld, const char *name)
Loads a UV lightmap and relevant UVIsland and MeshNode data fro, binary.
Definition
lightmap.c:610
check_lighting_pv
void check_lighting_pv()
Determines which LPVs we may need to replace due to distance to new ones.
Definition
lightmap.c:1391
init_uv_islands
void init_uv_islands(LightmapData *ld)
Adds all current UVIslands to the lightmap by allocating LightmapRects.
Definition
lightmap.c:384
init_lightmap_data
void init_lightmap_data(LightmapData *ld)
Frees current LightmapAtlas and UVIsland data and re-initializes the LightmapAtlas array and initiali...
Definition
lightmap.c:93
bake_lighting_probe_volume
void bake_lighting_probe_volume(ProbeVolume *pv)
Loads a UV lightmap and relevant UVIsland and MeshNode data fro, binary.
Definition
lightmap.c:1509
save_lightmap_to_binary
void save_lightmap_to_binary(LightmapData *ld, const char *name)
Saves a UV lightmap and relevant UVIsland and MeshNode data to binary.
Definition
lightmap.c:525
reset_lighting_pvs
void reset_lighting_pvs()
Resets current LPVs from their slots in SceneData.LOADED_LIGHTING_PV.
Definition
lightmap.c:1330
src
light
lightmap.h
Generated by
1.18.0