aboutsummaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer.h
diff options
context:
space:
mode:
authorJuan Linietsky2017-11-09 23:34:01 -0300
committerJuan Linietsky2017-11-09 23:35:34 -0300
commit192a4d7de5c557bdfe83bd180cd603d7e280ebd4 (patch)
tree94ce9779b3f84fbc320ba83624e326d487ca1c04 /servers/visual/rasterizer.h
parent0de6cba7e7e114f71fabb3dbe02cf260f7d3e2c6 (diff)
downloadgodot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.gz
godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.zst
godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.zip
Reworked how servers preallocate RIDs, should fix #10970
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r--servers/visual/rasterizer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index cd4b465d7..164baa8c9 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -320,6 +320,10 @@ public:
virtual RID light_create(VS::LightType p_type) = 0;
+ RID directional_light_create() { return light_create(VS::LIGHT_DIRECTIONAL); }
+ RID omni_light_create() { return light_create(VS::LIGHT_OMNI); }
+ RID spot_light_create() { return light_create(VS::LIGHT_SPOT); }
+
virtual void light_set_color(RID p_light, const Color &p_color) = 0;
virtual void light_set_param(RID p_light, VS::LightParam p_param, float p_value) = 0;
virtual void light_set_shadow(RID p_light, bool p_enabled) = 0;