Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @function lights_surface_draw()
- /// @description draws the lights surface after the filter
- function lights_surface_draw()
- {
- // Okay this time we only want the Draw End event, so anything that's not that, return
- if (event_type != ev_draw || event_number != ev_draw_end)
- return;
- // Draw the surface!
- if (surface_exists(global.lightingSurface))
- draw_surface(global.lightingSurface, global.viewX, global.viewY);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement