diff options
author | Daniel Rakos <daniel.rakos@rastergrid.com> | 2019-04-23 11:36:36 +0200 |
---|---|---|
committer | Daniel Rakos <daniel.rakos@rastergrid.com> | 2019-04-23 11:36:36 +0200 |
commit | de33ef2d1b94c1d3acc1cfa708665c99d0d0bb43 (patch) | |
tree | 83dd80102a1f9aca89d68f3ce4165807c447a27f /servers/visual/rasterizer.h | |
parent | 4b6327fb302cff5998bf3d3405a645d02bddb42a (diff) |
Disable GI probe capturing lights with bake mode disabled
The bake mode property of lights previously didn't affect GI probes.
This change makes the GI probe ignore lights that have their bake mode
set to disabled.
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r-- | servers/visual/rasterizer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 33081dcd0c..f7ee6d467f 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -372,6 +372,7 @@ public: virtual void light_set_negative(RID p_light, bool p_enable) = 0; virtual void light_set_cull_mask(RID p_light, uint32_t p_mask) = 0; virtual void light_set_reverse_cull_face_mode(RID p_light, bool p_enabled) = 0; + virtual void light_set_use_gi(RID p_light, bool p_enable) = 0; virtual void light_omni_set_shadow_mode(RID p_light, VS::LightOmniShadowMode p_mode) = 0; virtual void light_omni_set_shadow_detail(RID p_light, VS::LightOmniShadowDetail p_detail) = 0; @@ -391,6 +392,7 @@ public: virtual AABB light_get_aabb(RID p_light) const = 0; virtual float light_get_param(RID p_light, VS::LightParam p_param) = 0; virtual Color light_get_color(RID p_light) = 0; + virtual bool light_get_use_gi(RID p_light) = 0; virtual uint64_t light_get_version(RID p_light) const = 0; /* PROBE API */ |