From ccdbcbfce0ccde28300b517577bf42bc2f47a311 Mon Sep 17 00:00:00 2001 From: Artsiom Trubchyk Date: Sat, 11 Jul 2020 15:01:06 +0300 Subject: [PATCH] Update render script to use clear color from config. (#45) --- rendercam/rendercam.render_script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rendercam/rendercam.render_script b/rendercam/rendercam.render_script index d943864..75ec693 100644 --- a/rendercam/rendercam.render_script +++ b/rendercam/rendercam.render_script @@ -21,6 +21,10 @@ function init(self) self.particle_pred = render.predicate({"particle"}) self.clear_color = vmath.vector4(0) + self.clear_color.x = sys.get_config("render.clear_color_red", 0) + self.clear_color.y = sys.get_config("render.clear_color_green", 0) + self.clear_color.z = sys.get_config("render.clear_color_blue", 0) + self.clear_color.w = sys.get_config("render.clear_color_alpha", 0) rendercam.configWin.x = render.get_width(); rendercam.configWin.y = render.get_height() rendercam.update_window_size(render.get_window_width(), render.get_window_height())