diff options
author | clayjohn <claynjohn@gmail.com> | 2023-02-06 12:12:47 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-02-06 12:12:47 -0800 |
commit | 56450fb179a41d5a3b85ce40cd89793761b86646 (patch) | |
tree | b2b08ef00892c7cc70d8439164670d7054a4f688 /servers/rendering/storage | |
parent | 5eb2011423fd96d42f97757b6e582712498180c3 (diff) |
Implement cull_mask for decals and lights in mobile and compatibility backends
Diffstat (limited to 'servers/rendering/storage')
-rw-r--r-- | servers/rendering/storage/light_storage.h | 1 | ||||
-rw-r--r-- | servers/rendering/storage/texture_storage.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/storage/light_storage.h b/servers/rendering/storage/light_storage.h index 9f3f5dd8e4..5bd4297179 100644 --- a/servers/rendering/storage/light_storage.h +++ b/servers/rendering/storage/light_storage.h @@ -84,6 +84,7 @@ public: virtual RS::LightBakeMode light_get_bake_mode(RID p_light) = 0; virtual uint32_t light_get_max_sdfgi_cascade(RID p_light) = 0; virtual uint64_t light_get_version(RID p_light) const = 0; + virtual uint32_t light_get_cull_mask(RID p_light) const = 0; /* LIGHT INSTANCE API */ diff --git a/servers/rendering/storage/texture_storage.h b/servers/rendering/storage/texture_storage.h index 3a9034ad0d..227d44aa27 100644 --- a/servers/rendering/storage/texture_storage.h +++ b/servers/rendering/storage/texture_storage.h @@ -118,6 +118,7 @@ public: virtual void decal_set_normal_fade(RID p_decal, float p_fade) = 0; virtual AABB decal_get_aabb(RID p_decal) const = 0; + virtual uint32_t decal_get_cull_mask(RID p_decal) const = 0; virtual void texture_add_to_decal_atlas(RID p_texture, bool p_panorama_to_dp = false) = 0; virtual void texture_remove_from_decal_atlas(RID p_texture, bool p_panorama_to_dp = false) = 0; |