public ShaderProgram(String vert, String frag){
        vertShader = vert.equals("") ? 0 : genShader(vert, true);
        fragShader = frag.equals("") ? 0 : genShader(frag, false);
        program = glCreateProgram();
        if(vertShader == 0 && fragShader == 0){
            glDeleteProgram(program);
            program = 0;
            System.err.println("Not creating shader object.");
            return;
        }
        if(vertShader != 0) glAttachShader(program, vertShader);
        if(fragShader != 0) glAttachShader(program, fragShader);
        glLinkProgram(program);

        String log = glGetProgramInfoLog(program, 2000);
        if (glGetProgrami(program, GL_LINK_STATUS) == GL11.GL_FALSE) {
            System.err.println(log);
        }
    }