Added an event for entity rendering