Fixed issues in vertex shader.