Optimise rendering speed a little.
Fix shadow on characters