mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
e11dd6500a
Previously the bounding boxes and triangles were maintained in two separate arrays (Vectors). As the triangle vector was sorted and the bounding-box array was not , the order of both arrays differed. This meant that the index in one was different than the other, which caused lookup issues. To prevent this, the bounding-box is now part of the triangle structure so that there is a single structure that cannot become out-of-sync anymore.
16 lines
565 B
Python
16 lines
565 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
Import("env_modules")
|
|
|
|
env_lightmapper_rd = env_modules.Clone()
|
|
env_lightmapper_rd.GLSL_HEADER("lm_raster.glsl")
|
|
env_lightmapper_rd.GLSL_HEADER("lm_compute.glsl")
|
|
env_lightmapper_rd.GLSL_HEADER("lm_blendseams.glsl")
|
|
env_lightmapper_rd.Depends("lm_raster.glsl.gen.h", "lm_common_inc.glsl")
|
|
env_lightmapper_rd.Depends("lm_compute.glsl.gen.h", "lm_common_inc.glsl")
|
|
env_lightmapper_rd.Depends("lm_blendseams.glsl.gen.h", "lm_common_inc.glsl")
|
|
|
|
# Godot source files
|
|
env_lightmapper_rd.add_source_files(env.modules_sources, "*.cpp")
|