implemented the shader and the drawing object