fixed glsl compilation error on windows
fixed ambient light
various refactorings