Skip to content

Commit

Permalink
Update render script to use clear color from config. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman authored Jul 11, 2020
1 parent c89e25e commit ccdbcbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rendercam/rendercam.render_script
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ccdbcbf

Please sign in to comment.