diff options
| author | jfons <joan.fonssanchez@gmail.com> | 2021-04-20 18:40:24 +0200 |
|---|---|---|
| committer | jfons <joan.fonssanchez@gmail.com> | 2021-04-23 21:45:23 +0200 |
| commit | 4d9d99bb827967e2bb931eeb8c3f0e079b39ae1a (patch) | |
| tree | dcd5ff54562db253500aa835a27f3b2548e42eb9 /scene/3d/baked_lightmap.cpp | |
| parent | 34b3e8f9e2ae076990ecf3b2827eff759ba2abf9 (diff) | |
| download | redot-engine-4d9d99bb827967e2bb931eeb8c3f0e079b39ae1a.tar.gz | |
Implement occlusion culling
Added an occlusion culling system with support for static occluder meshes.
It can be enabled via `Project Settings > Rendering > Occlusion Culling > Use Occlusion Culling`.
Occluders are defined via the new `Occluder3D` resource and instanced using the new
`OccluderInstance3D` node. The occluders can also be automatically baked from a
scene using the built-in editor plugin.
Diffstat (limited to 'scene/3d/baked_lightmap.cpp')
| -rw-r--r-- | scene/3d/baked_lightmap.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/3d/baked_lightmap.cpp b/scene/3d/baked_lightmap.cpp index 2e1b77dfe5..ef648a126e 100644 --- a/scene/3d/baked_lightmap.cpp +++ b/scene/3d/baked_lightmap.cpp @@ -619,10 +619,6 @@ void BakedLightmap::_gen_new_positions_from_octree(const GenProbesOctree *p_cell } BakedLightmap::BakeError BakedLightmap::bake(Node *p_from_node, String p_image_data_path, Lightmapper::BakeStepFunc p_bake_step, void *p_bake_userdata) { - if (p_image_data_path == "" && (get_light_data().is_null() || !get_light_data()->get_path().is_resource_file())) { - return BAKE_ERROR_NO_SAVE_PATH; - } - if (p_image_data_path == "") { if (get_light_data().is_null()) { return BAKE_ERROR_NO_SAVE_PATH; |
