Vertex shader and fragment shader working with uniforms as c++ version.