fix shadows (Windows) and refactor effects handling