removed debugshader, fixed some bugs