small refactoring
Merge pull request #479 from Yankes/GlobeShadersFix

small refactoring