move all shade to cpp file