refactor radiosity baker
update MathHelper compatibility