fixed bug introduced during refactoring
added distance fog
only use a global coordinate system
added benchmark mode