Implementing vertex and pixel shader