Reimplemented the debug system for shader.hpp.