diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-20 00:40:46 +0200 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-03-17 14:00:02 -0700 |
commit | c45d2c242bf568363f0d6528dc142c0cac0eb1c8 (patch) | |
tree | 895ceb187050d15c94f5ad3a3e2de7c26e9be715 /servers/rendering/renderer_storage.h | |
parent | 6228063972b23a1ed216956b0e1d87d303548996 (diff) |
Replace DirectionalLight3D's `use_in_sky_only` with `sky_mode` enum
3 options are available:
- Light and Sky (default)
- Light Only (new)
- Sky Only (equivalent to `use_in_sky_only = true`)
Co-authored by: clayjohn <claynjohn@gmail.com>
Diffstat (limited to 'servers/rendering/renderer_storage.h')
-rw-r--r-- | servers/rendering/renderer_storage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_storage.h b/servers/rendering/renderer_storage.h index af4c697751..b5d6aae718 100644 --- a/servers/rendering/renderer_storage.h +++ b/servers/rendering/renderer_storage.h @@ -277,8 +277,8 @@ public: virtual void light_directional_set_shadow_mode(RID p_light, RS::LightDirectionalShadowMode p_mode) = 0; virtual void light_directional_set_blend_splits(RID p_light, bool p_enable) = 0; virtual bool light_directional_get_blend_splits(RID p_light) const = 0; - virtual void light_directional_set_sky_only(RID p_light, bool p_sky_only) = 0; - virtual bool light_directional_is_sky_only(RID p_light) const = 0; + virtual void light_directional_set_sky_mode(RID p_light, RS::LightDirectionalSkyMode p_mode) = 0; + virtual RS::LightDirectionalSkyMode light_directional_get_sky_mode(RID p_light) const = 0; virtual RS::LightDirectionalShadowMode light_directional_get_shadow_mode(RID p_light) = 0; virtual RS::LightOmniShadowMode light_omni_get_shadow_mode(RID p_light) = 0; |