├── .gitignore ├── CMakeLists.txt ├── README.md ├── includes ├── lmb │ ├── aabbox.h │ ├── base_type.h │ ├── bitmap.h │ ├── calc_blends.h │ ├── calculator.h │ ├── calculators │ │ ├── ao_calculator.h │ │ ├── denois_calculator.h │ │ ├── direct_light_calculator.h │ │ ├── il_calculator.h │ │ ├── job_base_calculator.h │ │ ├── lightmap_chunks_job.h │ │ ├── padding_calculator.h │ │ └── pre_info_calculator.h │ ├── debug.h │ ├── dumper.h │ ├── geometry.h │ ├── handles.h │ ├── icalculable.h │ ├── lightmap.h │ ├── lmb.h │ ├── lmb_obj.h │ ├── ray.h │ ├── ray_spread.h │ ├── singleton.h │ ├── solver.h │ ├── solvers │ │ ├── aabb_base_solver.h │ │ ├── default_solver.h │ │ ├── grid_solver.h │ │ └── kdtree_solver.h │ ├── thread_job.h │ └── triangle.h └── lmb_ui │ └── imgui │ ├── imconfig.h │ ├── imgui.h │ ├── imgui_impl_opengl2.h │ ├── imgui_impl_sdl.h │ ├── imgui_internal.h │ ├── imstb_rectpack.h │ ├── imstb_textedit.h │ └── imstb_truetype.h ├── screenshots ├── Screen_Shot.png ├── Screen_Shot2.png ├── Screen_Shot3.png ├── Screen_Shot4.png ├── Screen_Shot5.png ├── Screen_Shot6.png └── bug_direct_light_leak_transparency.png └── src ├── CMakeLists.txt ├── lmb ├── CMakeLists.txt ├── calculator.cpp ├── calculators │ ├── ao_calculator.cpp │ ├── denois_calculator.cpp │ ├── direct_light_calculator.cpp │ ├── il_calculator.cpp │ ├── lightmap_chunks_job.cpp │ ├── padding_calculator.cpp │ └── pre_info_calculator.cpp ├── handes.cpp ├── lightmap.cpp ├── lmb.cpp ├── lmb_obj.cpp ├── solvers │ ├── aabb_base_solver.cpp │ ├── default_solver.cpp │ ├── grid_solver.cpp │ └── kdtree_solver.cpp └── thread_job.cpp ├── lmb_example ├── CMakeLists.txt ├── display.h ├── main.cpp └── obj_loader.h └── lmb_ui ├── CMakeLists.txt ├── imgui ├── imgui.cpp ├── imgui_draw.cpp ├── imgui_impl_opengl2.cpp ├── imgui_impl_sdl.cpp └── imgui_widgets.cpp └── main.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | third_party/ 3 | .vscode/ 4 | TODO.md -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/README.md -------------------------------------------------------------------------------- /includes/lmb/aabbox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/aabbox.h -------------------------------------------------------------------------------- /includes/lmb/base_type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/base_type.h -------------------------------------------------------------------------------- /includes/lmb/bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/bitmap.h -------------------------------------------------------------------------------- /includes/lmb/calc_blends.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calc_blends.h -------------------------------------------------------------------------------- /includes/lmb/calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/ao_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/ao_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/denois_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/denois_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/direct_light_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/direct_light_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/il_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/il_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/job_base_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/job_base_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/lightmap_chunks_job.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/lightmap_chunks_job.h -------------------------------------------------------------------------------- /includes/lmb/calculators/padding_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/padding_calculator.h -------------------------------------------------------------------------------- /includes/lmb/calculators/pre_info_calculator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/calculators/pre_info_calculator.h -------------------------------------------------------------------------------- /includes/lmb/debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/debug.h -------------------------------------------------------------------------------- /includes/lmb/dumper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/dumper.h -------------------------------------------------------------------------------- /includes/lmb/geometry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/geometry.h -------------------------------------------------------------------------------- /includes/lmb/handles.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/handles.h -------------------------------------------------------------------------------- /includes/lmb/icalculable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/icalculable.h -------------------------------------------------------------------------------- /includes/lmb/lightmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/lightmap.h -------------------------------------------------------------------------------- /includes/lmb/lmb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/lmb.h -------------------------------------------------------------------------------- /includes/lmb/lmb_obj.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/lmb_obj.h -------------------------------------------------------------------------------- /includes/lmb/ray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/ray.h -------------------------------------------------------------------------------- /includes/lmb/ray_spread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/ray_spread.h -------------------------------------------------------------------------------- /includes/lmb/singleton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/singleton.h -------------------------------------------------------------------------------- /includes/lmb/solver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/solver.h -------------------------------------------------------------------------------- /includes/lmb/solvers/aabb_base_solver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/solvers/aabb_base_solver.h -------------------------------------------------------------------------------- /includes/lmb/solvers/default_solver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/solvers/default_solver.h -------------------------------------------------------------------------------- /includes/lmb/solvers/grid_solver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/solvers/grid_solver.h -------------------------------------------------------------------------------- /includes/lmb/solvers/kdtree_solver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/solvers/kdtree_solver.h -------------------------------------------------------------------------------- /includes/lmb/thread_job.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/thread_job.h -------------------------------------------------------------------------------- /includes/lmb/triangle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb/triangle.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imconfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imconfig.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imgui.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imgui.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imgui_impl_opengl2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imgui_impl_opengl2.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imgui_impl_sdl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imgui_impl_sdl.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imgui_internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imgui_internal.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imstb_rectpack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imstb_rectpack.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imstb_textedit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imstb_textedit.h -------------------------------------------------------------------------------- /includes/lmb_ui/imgui/imstb_truetype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/includes/lmb_ui/imgui/imstb_truetype.h -------------------------------------------------------------------------------- /screenshots/Screen_Shot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot.png -------------------------------------------------------------------------------- /screenshots/Screen_Shot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot2.png -------------------------------------------------------------------------------- /screenshots/Screen_Shot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot3.png -------------------------------------------------------------------------------- /screenshots/Screen_Shot4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot4.png -------------------------------------------------------------------------------- /screenshots/Screen_Shot5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot5.png -------------------------------------------------------------------------------- /screenshots/Screen_Shot6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/Screen_Shot6.png -------------------------------------------------------------------------------- /screenshots/bug_direct_light_leak_transparency.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/screenshots/bug_direct_light_leak_transparency.png -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/lmb/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/CMakeLists.txt -------------------------------------------------------------------------------- /src/lmb/calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/ao_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/ao_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/denois_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/denois_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/direct_light_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/direct_light_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/il_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/il_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/lightmap_chunks_job.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/lightmap_chunks_job.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/padding_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/padding_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/calculators/pre_info_calculator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/calculators/pre_info_calculator.cpp -------------------------------------------------------------------------------- /src/lmb/handes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/handes.cpp -------------------------------------------------------------------------------- /src/lmb/lightmap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/lightmap.cpp -------------------------------------------------------------------------------- /src/lmb/lmb.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/lmb.cpp -------------------------------------------------------------------------------- /src/lmb/lmb_obj.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/lmb_obj.cpp -------------------------------------------------------------------------------- /src/lmb/solvers/aabb_base_solver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/solvers/aabb_base_solver.cpp -------------------------------------------------------------------------------- /src/lmb/solvers/default_solver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/solvers/default_solver.cpp -------------------------------------------------------------------------------- /src/lmb/solvers/grid_solver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/solvers/grid_solver.cpp -------------------------------------------------------------------------------- /src/lmb/solvers/kdtree_solver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/solvers/kdtree_solver.cpp -------------------------------------------------------------------------------- /src/lmb/thread_job.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb/thread_job.cpp -------------------------------------------------------------------------------- /src/lmb_example/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_example/CMakeLists.txt -------------------------------------------------------------------------------- /src/lmb_example/display.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_example/display.h -------------------------------------------------------------------------------- /src/lmb_example/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_example/main.cpp -------------------------------------------------------------------------------- /src/lmb_example/obj_loader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_example/obj_loader.h -------------------------------------------------------------------------------- /src/lmb_ui/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/CMakeLists.txt -------------------------------------------------------------------------------- /src/lmb_ui/imgui/imgui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/imgui/imgui.cpp -------------------------------------------------------------------------------- /src/lmb_ui/imgui/imgui_draw.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/imgui/imgui_draw.cpp -------------------------------------------------------------------------------- /src/lmb_ui/imgui/imgui_impl_opengl2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/imgui/imgui_impl_opengl2.cpp -------------------------------------------------------------------------------- /src/lmb_ui/imgui/imgui_impl_sdl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/imgui/imgui_impl_sdl.cpp -------------------------------------------------------------------------------- /src/lmb_ui/imgui/imgui_widgets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/imgui/imgui_widgets.cpp -------------------------------------------------------------------------------- /src/lmb_ui/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ErindiGR/LMB/HEAD/src/lmb_ui/main.cpp --------------------------------------------------------------------------------