triangle and lighting macros