summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-22 10:04:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-22 10:05:23 -0300
commit46af4b0a4b73a14f01a1aba9b0a8ab0bef05252a (patch)
tree54c7cac58401e07277910e3a1f1fb459748fd16c /servers/visual/rasterizer.h
parent6ab16512eb7dd8ec336b75cdaac396dfa661d0e7 (diff)
Changes to GLES2 renderer to not use cube shadows if not available, fixes #25132
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r--servers/visual/rasterizer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index 394592ec64..6f8a30070a 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -141,6 +141,7 @@ public:
virtual void light_instance_set_transform(RID p_light_instance, const Transform &p_transform) = 0;
virtual void light_instance_set_shadow_transform(RID p_light_instance, const CameraMatrix &p_projection, const Transform &p_transform, float p_far, float p_split, int p_pass, float p_bias_scale = 1.0) = 0;
virtual void light_instance_mark_visible(RID p_light_instance) = 0;
+ virtual bool light_instances_can_render_shadow_cube() const { return true; }
virtual RID reflection_atlas_create() = 0;
virtual void reflection_atlas_set_size(RID p_ref_atlas, int p_size) = 0;