Fix a regression introduced by skybox fix
Factorize draw code for pass1 shaders